xml-basic-0.1: Basics for XML/HTML representation and processing

Text.HTML.Basic.Character

Synopsis

Documentation

data T Source

Instances

Eq T 
Show T 
C T 

asciiFromUnicode :: Char -> TSource

Convert unicode character to XML Char. If there is a named reference, use this. If it is ASCII, represent it as Char. Otherwise use a numeric reference.

minimalRefFromUnicode :: Char -> TSource

Generate XML character from Unicode character with minimal use of references. The only references used are the XML entity references ', ", &, <, >.

switchUnicodeRuns :: (String -> a) -> (Int -> a) -> (String -> a) -> [T] -> [a]Source