mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +00:00
LibMarkdown: Escape HTML entities in text
This commit is contained in:
parent
fc3d16d664
commit
0a1ecbec48
2 changed files with 1 additions and 2 deletions
|
@ -113,7 +113,7 @@ String Text::render_to_html() const
|
|||
}
|
||||
|
||||
current_style = span.style;
|
||||
builder.append(span.text);
|
||||
builder.append(escape_html_entities(span.text));
|
||||
}
|
||||
|
||||
for (ssize_t i = open_tags.size() - 1; i >= 0; --i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue