use-escape 0.1.0

Escaping and unescaping helpers for RustUse
Documentation
  • Coverage
  • 5.56%
    1 out of 18 items documented1 out of 13 items with examples
  • Size
  • Source code size: 10.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 369.31 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • RustUse/use-encoding
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-escape

Escaping and unescaping helpers for HTML, XML, JSON, CSV, and basic shell text.

Warning: versions below 0.3.0 are experimental and may change as the crate surface is refined.

Example Usage

use use_escape::{escape_html, escape_json_string, unescape_html};

let html = escape_html("<tag>");
let json = escape_json_string("line\nbreak");
let unescaped = unescape_html("&lt;tag&gt;");

let _ = (html, json, unescaped);

Scope

  • HTML, XML, JSON, CSV, and shell-oriented escaping helpers
  • lightweight unescaping for common named and numeric forms
  • simple detection helpers for whether escaping is needed

Non-Goals

  • security-grade shell escaping across all shells
  • full HTML, XML, or JSON parsing
  • sanitization suitable for security boundaries

License

Licensed under either of the following, at your option:

  • MIT License
  • Apache License, Version 2.0