Portability | Haskell 98 |
---|---|
Stability | experimental |
Maintainer | Niklas Broberg, [email protected] |
HSP.XML.PCDATA
Description
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
Arguments
:: [(Char, String)] | table of escape characters |
-> String | String to escape |
-> String | Escaped String |
Take a normal string and transform it to PCDATA by escaping special characters.
See also: escape
, xmlEscapeChars
Arguments
:: [(Char, String)] | table of escape characters |
-> String | String to unescape |
-> String | unescaped String |
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