html-entities-1.1.4.7: A codec library for HTML-escaped text and HTML-entities
Safe HaskellSafe-Inferred
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;