Portability | Haskell 98 |
---|---|
Stability | experimental |
Maintainer | Niklas Broberg, nibro@cs.chalmers.se |
Escaping between CDATA = PCDATA
Documentation
escape :: String -> StringSource
Take a normal string and transform it to PCDATA by escaping special characters.
calls escaper
with xmlEscapeChars
See also: escaper
unescape :: String -> StringSource
Take a PCDATA string and translate all escaped characters in it to the normal
characters they represent.
Does no error checking of input string, will fail if input is not valid PCDATA.
calls unescaper
with xmlEscapeChars
See also: unescaper
Take a normal string and transform it to PCDATA by escaping special characters.
See also: escape
, xmlEscapeChars
Take a PCDATA string and translate all escaped characters in it to the normal
characters they represent.
Does no error checking of input string, will fail if input is not valid PCDATA.
See also: unescape
, xmlEscapeChars
xmlEscapeChars :: [(Char, String)]Source