| Copyright | (C) 2016-2025 David M. Johnson |
|---|---|
| License | BSD3-style (see the file LICENSE) |
| Maintainer | David M. Johnson <code@dmj.io> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Miso.Html.Render
Contents
Description
View serialization
Synopsis
- class ToHtml a where
- toHtml :: a -> ByteString
- htmlEncode :: MisoString -> MisoString
Classes
Class for rendering HTML
Methods
toHtml :: a -> ByteString Source #
Instances
| ToHtml [View m a] Source # | Render a |
Defined in Miso.Html.Render Methods toHtml :: [View m a] -> ByteString Source # | |
| ToHtml (View m a) Source # | Render a |
Defined in Miso.Html.Render Methods toHtml :: View m a -> ByteString Source # | |
htmlEncode :: MisoString -> MisoString Source #
HTML-encodes the given text.
>>>Data.Text.IO.putStrLn $ text "<a href=\"\">"<a href="">