vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Module vibe.textfilter.html

HTML character entity escaping.

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).
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

NameDescription
HTMLEscapeFlags
Authors

Sönke Ludwig

Copyright

© 2012-2014 Sönke Ludwig

License

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