Copyright | (c) Niklas Broberg 2008-2012 |
---|---|
License | BSD-style (see the file LICENSE.txt) |
Maintainer | Niklas Broberg, nibro@cs.chalmers.se |
Stability | experimental |
Portability | Haskell 98 |
Safe Haskell | Safe |
Language | Haskell98 |
HSP.XML.PCDATA
Description
Escaping between CDATA = PCDATA
Documentation
escape :: Text -> Builder Source #
Take a normal string and transform it to PCDATA by escaping special characters.
calls escaper
with xmlEscapeChars
See also: escaper
Arguments
:: [(Char, Builder)] | table of escape characters |
-> Text | String to escape |
-> Builder | Escaped String |
Take a normal string and transform it to PCDATA by escaping special characters.
See also: escape
, xmlEscapeChars
xmlEscapeChars :: [(Char, Builder)] Source #