1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

LibJS: Convert MarkupGenerator to the new String

This commit is contained in:
Linus Groh 2022-12-06 20:42:59 +00:00
parent f23b55ae86
commit 112b3f7342
5 changed files with 92 additions and 85 deletions

View file

@ -30,7 +30,7 @@ DeprecatedString CodeBlock::render_to_html(bool) const
builder.appendff("<code class=\"language-{}\">", escape_html_entities(m_language));
if (m_language == "js")
builder.append(JS::MarkupGenerator::html_from_source(m_code));
builder.append(JS::MarkupGenerator::html_from_source(m_code).release_value_but_fixme_should_propagate_errors());
else
builder.append(escape_html_entities(m_code));