html-entities-1.1.4.6: A codec library for HTML-escaped text and HTML-entities
Safe HaskellNone
LanguageHaskell2010

HTMLEntities.Builder

Synopsis

Documentation

char :: Char -> Builder Source #

HTML-encodes the given char into a text builder.

text :: Text -> Builder Source #

HTML-encodes the given text into a text builder.

>>> Data.Text.Lazy.IO.putStrLn $ Data.Text.Lazy.Builder.toLazyText $ text "<a href=\"\">"
&lt;a href=&quot;&quot;&gt;