hsp-0.10.0: Haskell Server Pages is a library for writing dynamic server-side web pages.
Copyright(c) Niklas Broberg 2008-2012
LicenseBSD-style (see the file LICENSE.txt)
MaintainerNiklas Broberg, nibro@cs.chalmers.se
Stabilityexperimental
PortabilityHaskell 98
Safe HaskellSafe-Inferred
LanguageHaskell98

HSP.XML.PCDATA

Description

Escaping between CDATA = PCDATA

Synopsis

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

escaper Source #

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