html.escape-text
- description
- Escape a text for the content of an HTML element: & < > become & < >
- type
Fn(text: String) -> String
- expression
fn(text$0) =>
@core.string-replace(
text: @core.string-replace(text: @core.string-replace(text: $0, from: "&", to: "&"), from: "<", to: "<"),
from: ">",
to: ">"
)- visibility
- public
html.escape-text (project html, branch main, snapshot hd1kHQmQUtgayk-Y5Eo_pcQPlqiL8dHKKndnKtdm-KI)
id: fPaePXym-IaD6SchyMm9_Fkjdis4B-vzIJOWuS9b04Y
content hash: O1zR8HvhgdpsUTlKzLPvC48s_rzlW0tE3tUWobdaep0