Crate escapade [] [src]

escapade - type assisted html safety

escapade is inspired by ActiveSupports SafeBuffer.

escapade provides String concatenation and writing, but automatically escapes any HTML in the data in the process. This prevents accidental unescaped writes to the output.

The library provides both a String type for HTML-safe concatenation and a writer, wrapping types implementing Write.

The library works with any type that implements AsRef<str>.

Structs

Escaped

An escaped string-like value

EscapedWriter

A wrapper for writer automatically escaping text written to it

Traits

Append

Trait marking a value as appendable to Escaped

Escapable

Marks values as escapable

EscapedWrite

Escaped writing to buffers