hsp-0.4.5: Haskell Server Pages is a library for writing dynamic server-side web pages.Source codeContentsIndex
HSP.XML.PCDATA
PortabilityHaskell 98
Stabilityexperimental
MaintainerNiklas Broberg, nibro@cs.chalmers.se
Description
Escaping between CDATA = PCDATA
Synopsis
escape :: String -> String
unescape :: String -> String
escaper :: [(Char, String)] -> String -> String
unescaper :: [(Char, String)] -> String -> String
xmlEscapeChars :: [(Char, String)]
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
escaperSource
:: [(Char, String)]table of escape characters
-> StringString to escape
-> StringEscaped String
Take a normal string and transform it to PCDATA by escaping special characters. See also: escape, xmlEscapeChars
unescaperSource
:: [(Char, String)]table of escape characters
-> StringString to unescape
-> Stringunescaped 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
Produced by Haddock version 2.4.2