Skip to content

A platform for community discussion. Free, open, simple.

FIX: Display the whole summary when it consists of multiple <p> tags. (#22568)

Roman Rizzi689232476767
diff --git a/app/assets/javascripts/discourse/app/widgets/summary-box.js b/app/assets/javascripts/discourse/app/widgets/summary-box.js
index a3f00e4d8b5..ddb41e04dd5 100644
--- a/app/assets/javascripts/discourse/app/widgets/summary-box.js
+++ b/app/assets/javascripts/discourse/app/widgets/summary-box.js
@@ -34,7 +34,7 @@ export default createWidget("summary-box", {
const html = [];
if (state.summary) {
- html.push(new RawHtml({ html: state.summary }));
+ html.push(new RawHtml({ html: `<div>${state.summary}</div>` }));
html.push(
h(
"div.summarized-on",