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

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

HSP.XML.PCDATA

Description

Escaping between CDATA = PCDATA

Synopsis

Documentation

escape :: Text -> BuilderSource

Take a normal string and transform it to PCDATA by escaping special characters. calls escaper with xmlEscapeChars See also: escaper

escaperSource

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