| Safe Haskell | None |
|---|
Text.Hako.Html
Description
Documentation
htmlEncode :: String -> HtmlSource
Basic HTML-encoding: converts all special HTML characters into the corresponding entities.
A piece of HTML source. Use fromHtml to get the HTML source back out.
All expressions interpolated into Hako templates using {} syntax
must satisfy ToHtml. Any member of Show automatically has a default
implementation through show; additionally, suitable implementations
are provided for String (skipping the quoting and escaping which show
would otherwise introduce), as well as Lists, Maybes and Eithers of
ToHtmls.
Instances
| Show a => ToHtml a | All other types in |
| ToHtml Html |
|
| ToHtml [Char] | Strings have their own instance of |
| ToHtml a => ToHtml [a] | Lists are automatically folded using straightforward concatenation. |
| ToHtml a => ToHtml (Maybe a) | Implement an instance for |
| (ToHtml a, ToHtml b) => ToHtml (Either a b) |
|