Module z_html_charref

Converts HTML 4 charrefs and entities to codepoints.

Copyright © 2007 Mochi Media, Inc.

Authors: Bob Ippolito (bob@mochimedia.com).

Description

Converts HTML 4 charrefs and entities to codepoints.

Function Index

charref/1Convert a decimal charref, hex charref, or html entity to a unicode codepoint, or return undefined on failure.

Function Details

charref/1

charref(B::S) -> integer() | undefined

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.


Generated by EDoc