pandocSource codeContentsIndex
Text.Pandoc.XML
Portabilityportable
Stabilityalpha
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Description
Functions for escaping and formatting XML.
Synopsis
stripTags :: String -> String
escapeCharForXML :: Char -> String
escapeStringForXML :: String -> String
inTags :: Bool -> String -> [(String, String)] -> Doc -> Doc
selfClosingTag :: String -> [(String, String)] -> Doc
inTagsSimple :: String -> Doc -> Doc
inTagsIndented :: String -> Doc -> Doc
Documentation
stripTags :: String -> StringSource
Remove everything between ...
escapeCharForXML :: Char -> StringSource
Escape one character as needed for XML.
escapeStringForXML :: String -> StringSource
Escape string as needed for XML. Entity references are not preserved.
inTags :: Bool -> String -> [(String, String)] -> Doc -> DocSource
Put the supplied contents between start and end tags of tagType, with specified attributes and (if specified) indentation.
selfClosingTag :: String -> [(String, String)] -> DocSource
Return a self-closing tag of tagType with specified attributes
inTagsSimple :: String -> Doc -> DocSource
Put the supplied contents between start and end tags of tagType.
inTagsIndented :: String -> Doc -> DocSource
Put the supplied contents in indented block btw start and end tags.
Produced by Haddock version 2.4.2