Skip to content

Commit

Permalink
[FIX] remove extra <p> tags around descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
thomassth committed Dec 2, 2024
1 parent 518ec21 commit 73dd592
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client-participation/js/views/participation.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ module.exports = ConversationView.extend({
*/

var html = markdown.toHTML(md_content);
// delete the <p> ... </p> wrapper
html = html.replace(/^<p>|<\/p>$/g, '');
ctx.description = html;
if (/^ *$/.test(ctx.description) || _.isNull(ctx.description) || ctx.description === "") {
ctx.description = void 0;
Expand Down

0 comments on commit 73dd592

Please sign in to comment.