htmlEscape

Returns the HTML escaped version of a given string.

@trusted
string
htmlEscape
(
R
)
(
R str
)
if (
isInputRange!R
)

Examples

assert(htmlEscape(`"Hello", <World>!`) == `"Hello", &lt;World&gt;!`);

Meta