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:
parent
f23b55ae86
commit
112b3f7342
5 changed files with 92 additions and 85 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue