vibe.d beta banner
get vibe.d
0.7.30

Module diet.internal.html

HTML character entity escaping - taken from the vibe.d project.

TODO

Make things @safe once Appender is.

Functions

NameDescription
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).
htmlAttribEscape(dst, val)
htmlEscape(str)Returns the HTML escaped version of a given string.
htmlEscape(dst, val)
htmlEscapeMin(str)Minimally escapes a text so that no HTML tags appear in it.

Enums

NameDescription
HTMLEscapeFlags
Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.