diff --git a/Userland/Libraries/LibMarkdown/CodeBlock.cpp b/Userland/Libraries/LibMarkdown/CodeBlock.cpp index 3a6b8dff157..de2bb0958b7 100644 --- a/Userland/Libraries/LibMarkdown/CodeBlock.cpp +++ b/Userland/Libraries/LibMarkdown/CodeBlock.cpp @@ -39,7 +39,7 @@ String CodeBlock::render_to_html() const if (style_language.is_empty()) builder.append(""); else - builder.appendff("", style_language); + builder.appendff("", escape_html_entities(style_language)); if (style_language == "js") builder.append(JS::MarkupGenerator::html_from_source(m_code));