html-entity-fix 0.1.0

Decode HTML entities (& < > " ' numeric refs) that LLMs sometimes emit in plain-text output. Zero deps.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# html-entity-fix

[![crates.io](https://img.shields.io/crates/v/html-entity-fix.svg)](https://crates.io/crates/html-entity-fix)

Decode HTML entities (`&`, `<`, `>`, `"`, `'`,
`'`, common typography) inside text that was supposed to be plain.
Catches LLMs that over-correct out of an HTML context.

```rust
use html_entity_fix::fix;
assert_eq!(fix("AT&T"), "AT&T");
assert_eq!(fix("&lt;tag&gt;"), "<tag>");
```

Zero deps. MIT or Apache-2.0.