blaze-builder-0.4.1.0: Efficient buffered output.

Copyright | (c) 2016 Dylan Simon
License | BSD3
Maintainer | Leon P Smith <leon@melding-monads.com>
Stability | experimental
Safe Haskell | None
Language | Haskell98

Blaze.ByteString.Builder.Html.Word

Contents

- Writing HTML escaped bytes to a buffer
- Creating Builders from HTML escaped bytes

Description

`Write`s and `Builder`s for serializing HTML escaped `Word8` characters and `ByteString`s that have already been appropriately encoded into HTML by escaping basic ASCII character references but leaving other bytes untouched.

Synopsis

- wordHtmlEscaped :: BoundedPrim Word8
- writeHtmlEscapedWord :: Word8 -> Write
- fromHtmlEscapedWord :: Word8 -> Builder
- fromHtmlEscapedWordList :: [Word8] -> Builder
- fromHtmlEscapedByteString :: ByteString -> Builder
- fromHtmlEscapedLazyByteString :: ByteString -> Builder

# Documentation

wordHtmlEscaped :: BoundedPrim Word8 #

# Writing HTML escaped bytes to a buffer

writeHtmlEscapedWord :: Word8 -> Write #

Write a HTML escaped byte to a bufffer.

# Creating Builders from HTML escaped bytes

fromHtmlEscapedWord :: Word8 -> Builder #

O(1). Serialize a HTML escaped byte.

fromHtmlEscapedWordList :: [Word8] -> Builder #

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

fromHtmlEscapedByteString :: ByteString -> Builder #

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

fromHtmlEscapedLazyByteString :: ByteString -> Builder #

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