html-entities-1.1.4.3: A codec library for HTML-escaped text and HTML-entities

Safe HaskellNone
LanguageHaskell2010

HTMLEntities.Text

Synopsis

Documentation

char :: Char -> Text Source #

HTML-encodes the given char.

text :: Text -> Text Source #

HTML-encodes the given text.

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