htmlAttribEscape

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

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

Examples

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

Meta