encode_html_attr multimethod

Methods

encode_html_attr(s:Str) Source: stdlib.ngs:6457
Encodes HTML attribute. Escapes &, <, >, " and ' .

Returns

Str

Example

"ab>+c%&'".encode_html_attr()  # "ab&gt;+c%&amp;&#39;"