Registry / utility / htmlentity

htmlentity

JSON →
library1.3.2rscratesunverified

A library for encoding and decoding HTML entities.

# Cargo.toml [dependencies] htmlentity = "1.3.2"
INSTALL
IMPORT
SIG · HTMLENTITY
H
htmlentity
utilityrustv1.3.2
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.

HtmlEntity
use htmlentity::entity::HtmlEntity;

Encodes and decodes HTML entities.

use htmlentity::entity::HtmlEntity; fn main() { let encoded = HtmlEntity::encode("<script>"); println!("{}", encoded); let decoded = HtmlEntity::decode("&lt;script&gt;"); println!("{}", decoded); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
htmlentity — cargo add htmlentity · libregistry