xhtml-3000.2.0.5: An XHTML combinator library

Safe HaskellSafe

Text.XHtml.Extras

Contents

Synopsis

Converting strings to HTML

stringToHtml :: String -> HtmlSource

Convert a String to Html, converting characters that need to be escaped to HTML entities.

lineToHtml :: String -> HtmlSource

This converts a string, but keeps spaces as non-line-breakable.

linesToHtml :: [String] -> HtmlSource

This converts a string, but keeps spaces as non-line-breakable, and adds line breaks between each of the strings in the input list.

Html abbreviations

copyright :: HtmlSource

Copyright sign.

spaceHtml :: HtmlSource

Non-breaking space.

p :: Html -> HtmlSource

Same as paragraph.

Hotlinks

Lists

ordList :: HTML a => [a] -> HtmlSource

unordList :: HTML a => [a] -> HtmlSource

defList :: (HTML a, HTML b) => [(a, b)] -> HtmlSource

Forms