Module mochiweb_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.
test/0Run tests for mochiweb_charref.

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.

test/0

test() -> ok

Run tests for mochiweb_charref.


Generated by EDoc, Aug 8 2008, 22:08:34.