hsp-0.5.2: Haskell Server Pages is a library for writing dynamic server-side web pages.

PortabilityHaskell 98
Stabilityexperimental
MaintainerNiklas Broberg, nibro@cs.chalmers.se

HSP.XML.PCDATA

Description

Escaping between CDATA = PCDATA

Synopsis

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

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

unescaperSource

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