View Source z_html_charref (zotonic_stdlib v1.20.1)

Converts HTML 4 charrefs and entities to codepoints.

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.

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.