miso
Copyright(C) 2016-2025 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Html.Render

Contents

Description

View serialization

Synopsis

Classes

class ToHtml a where Source #

Class for rendering HTML

Methods

toHtml :: a -> ByteString Source #

Instances

Instances details
ToHtml [View m a] Source #

Render a [Miso.Types.View] to a L.ByteString

Instance details

Defined in Miso.Html.Render

Methods

toHtml :: [View m a] -> ByteString Source #

ToHtml (View m a) Source #

Render a Miso.Types.View to a L.ByteString

Instance details

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=\"\">"
&lt;a href=&quot;&quot;&gt;