1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

AK+LibWeb: Remove URL::to_string_encoded()

This replaces URL::to_string_encoded() with to_string() and removes the
former, since they are now equivalent.
This commit is contained in:
Max Wipfli 2021-06-01 11:11:05 +02:00 committed by Andreas Kling
parent a9114be1b8
commit 33396494f6
3 changed files with 3 additions and 4 deletions

View file

@ -52,7 +52,8 @@ void OutOfProcessWebView::handle_web_content_process_crash()
builder.appendff(" on {}", escape_html_entities(m_url.host()));
}
builder.append("</h1>");
builder.appendff("The web page <a href=\"{}\">{}</a> has crashed.<br><br>You can reload the page to try again.", escape_html_entities(m_url.to_string_encoded()), escape_html_entities(m_url.to_string()));
auto escaped_url = escape_html_entities(m_url.to_string());
builder.appendff("The web page <a href=\"{}\">{}</a> has crashed.<br><br>You can reload the page to try again.", escaped_url, escaped_url);
builder.append("</body></html>");
load_html(builder.to_string(), m_url);
}