mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibJS: Convert MarkupGenerator to the new String
This commit is contained in:
parent
f23b55ae86
commit
112b3f7342
Notes:
sideshowbarker
2024-07-17 07:35:03 +09:00
Author: https://github.com/linusg
Commit: 112b3f7342
Pull-request: https://github.com/SerenityOS/serenity/pull/16341
Reviewed-by: https://github.com/davidot ✅
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