Module vibe.textfilter.html
HTML character entity escaping.
TODO
Make things @safe once Appender is.
Functions
Name | Description |
---|---|
filterHTMLAllEscape(dst, str)
|
Writes the HTML escaped version of a given string to an output range (escapes every character). |
filterHTMLAttribEscape(dst, str)
|
Writes the HTML escaped version of a given string to an output range (also escapes double quotes). |
filterHTMLEscape(dst, str, flags)
|
Writes the HTML escaped version of a given string to an output range. |
filterHTMLEscape(dst, ch, flags)
|
Writes the HTML escaped version of a character to an output range. |
htmlAllEscape(str)
|
Returns the HTML escaped version of a given string (escapes every character). |
htmlAttribEscape(str)
|
Returns the HTML escaped version of a given string (also escapes double quotes). |
htmlEscape(str)
|
Returns the HTML escaped version of a given string. |
htmlEscapeMin(str)
|
Minimally escapes a text so that no HTML tags appear in it. |
Enums
Name | Description |
---|---|
HTMLEscapeFlags
|