View Source z_html_charref (zotonic_stdlib v1.17.0)

Converts HTML 4 charrefs and entities to codepoints.

Link to this section Summary

Functions

Convert a decimal charref, hex charref, or html entity to a unicode codepoint, or return undefined on failure. The input should not include an ampersand or semicolon. charref("#38") = 38, charref("#x26") = 38, charref("amp") = 38.

Link to this section Functions

Convert a decimal charref, hex charref, or html entity to a unicode codepoint, or return undefined on failure. The input should not include an ampersand or semicolon. charref("#38") = 38, charref("#x26") = 38, charref("amp") = 38.