vibe.d beta banner
get vibe.d
0.7.30

Function htmlAttribEscape

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

Prototype

string htmlAttribEscape(R)(
  R str
)
if (isInputRange!R);

Example

assert(htmlAttribEscape(`"Hello", <World>!`) == `&quot;Hello&quot;, &lt;World&gt;!`);
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License