Skip to main content

Module escape

Module escape 

Source
Expand description

HTML escaping.

This module contains one unit struct, which can be used to HTML-escape a string of text (for use in a format string).

Re-exportsยง

use std::fmt; ๐Ÿ”’
use pulldown_cmark_escape::FmtWriter; ๐Ÿ”’
use unicode_segmentation::UnicodeSegmentation; ๐Ÿ”’

Structsยง

Escape ๐Ÿ”’
Wrapper struct which will emit the HTML-escaped version of the contained string when passed to a format string.
EscapeBodyText ๐Ÿ”’
Wrapper struct which will emit the HTML-escaped version of the contained string when passed to a format string.
EscapeBodyTextWithWbr ๐Ÿ”’
Wrapper struct which will emit the HTML-escaped version of the contained string when passed to a format string. This function also word-breaks CamelCase and snake_case word names.