vibe.textfilter.html

HTML character entity escaping.

TODO: Make things @safe once Appender is.

Members

Enums

HTMLEscapeFlags
enum HTMLEscapeFlags
Undocumented in source.

Functions

filterHTMLAllEscape
void filterHTMLAllEscape(R dst, S str)

Writes the HTML escaped version of a given string to an output range (escapes every character).

filterHTMLAttribEscape
void filterHTMLAttribEscape(R dst, S str)

Writes the HTML escaped version of a given string to an output range (also escapes double quotes).

filterHTMLEscape
void filterHTMLEscape(R dst, S str, HTMLEscapeFlags flags)

Writes the HTML escaped version of a given string to an output range.

filterHTMLEscape
void filterHTMLEscape(R dst, dchar ch, HTMLEscapeFlags flags)

Writes the HTML escaped version of a character to an output range.

htmlAllEscape
string htmlAllEscape(R str)

Returns the HTML escaped version of a given string (escapes every character).

htmlAttribEscape
string htmlAttribEscape(R str)

Returns the HTML escaped version of a given string (also escapes double quotes).

htmlEscape
string htmlEscape(R str)

Returns the HTML escaped version of a given string.

htmlEscapeMin
string htmlEscapeMin(R str)

Minimally escapes a text so that no HTML tags appear in it.

Meta

License

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

Authors

Sönke Ludwig