Registry / utility / askama-escape

askama-escape

JSON →
library0.16.0rscratesunverified

Provides HTML escaping functionality extracted from the Askama template engine.

# Cargo.toml [dependencies] askama_escape = "0.16.0"
INSTALL
IMPORT
SIG · ASKAMA-ESCAPE
A
askama-escape
utilityrustv0.16.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

escape
use askama_escape::escape;

Escapes HTML special characters in a string.

use askama_escape::escape; let escaped = escape(&"<script>alert('xss')</script>").unwrap(); println!("{}", escaped);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.16.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
2
Resources
askama-escape — cargo add askama-escape · libregistry