blaze-builder-0.4.2.3: Efficient buffered output.
Copyright(c) 2016 Dylan Simon
LicenseBSD3
Maintainerhttps://github.com/blaze-builder
Stabilitystable
Safe HaskellSafe-Inferred
LanguageHaskell98

Blaze.ByteString.Builder.Html.Word

Description

Writes and Builders for serializing HTML escaped Word8 characters and ByteStrings that have already been appropriately encoded into HTML by escaping basic ASCII character references but leaving other bytes untouched.

Synopsis

Documentation

Writing HTML escaped bytes to a buffer

writeHtmlEscapedWord :: Word8 -> Write Source #

Write a HTML escaped byte to a bufffer.

Creating Builders from HTML escaped bytes

fromHtmlEscapedWord :: Word8 -> Builder Source #

O(1). Serialize a HTML escaped byte.

fromHtmlEscapedWordList :: [Word8] -> Builder Source #

O(n). Serialize a HTML escaped list of bytes.

fromHtmlEscapedByteString :: ByteString -> Builder Source #

O(n). Serialize a HTML escaped ByteString.

fromHtmlEscapedLazyByteString :: ByteString -> Builder Source #

O(n). Serialize a HTML escaped lazy ByteString.