MCPcopy Create free account
hub / github.com/PRQL/prql / escape_html

Function escape_html

prqlc/prqlc/src/debug/render_html.rs:521–527  ·  view source on GitHub ↗
(text: &str)

Source from the content-addressed store, hash-verified

519}
520
521fn escape_html(text: &str) -> String {
522 text.replace('&', "&")
523 .replace('<', "&lt;")
524 .replace('>', "&gt;")
525 .replace('"', "&quot;")
526 .replace('\'', "&#039;")
527}
528
529const CSS_STYLES: &str = r#"
530body {

Callers 2

write_repr_prqlFunction · 0.85
write_json_ast_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected