mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
LibGemini: Convert StringBuilder::appendf() => AK::Format
This commit is contained in:
parent
24c149b013
commit
c2a8869c1f
1 changed files with 2 additions and 5 deletions
|
@ -23,12 +23,9 @@ Text::~Text()
|
||||||
|
|
||||||
String Heading::render_to_html() const
|
String Heading::render_to_html() const
|
||||||
{
|
{
|
||||||
StringBuilder builder;
|
return String::formatted("<h{}>{}</h{}>", m_level, escape_html_entities(m_text.substring_view(m_level, m_text.length() - m_level)), m_level);
|
||||||
builder.appendf("<h%d>", m_level);
|
|
||||||
builder.append(escape_html_entities(m_text.substring_view(m_level, m_text.length() - m_level)));
|
|
||||||
builder.appendf("</h%d>", m_level);
|
|
||||||
return builder.build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Heading::~Heading()
|
Heading::~Heading()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue