For when you ask yourself "how do I escape that"?
Prints escape sequences for unicode graphemes
It seems like every other day I'm looking up what the escape sequence for a unicode grapheme is in various web languages. And I'm also trying to learn Rust. So I wrote a tool in Rust.
$ cargo install how-do-i-escape
$ how-do-i-escape §
css = "\00A7"
html = §
js = "\u00A7"
- Check code coverage is working properly
- Prefer HTML entities if one exists
- Improve output readability (maybe with colour)
- Try and reduce the time it takes to run
cargo install
- Test against stable, beta and nightly Rust
- Read spec to figure out how graphemes > FFFF are supposed to work
- Use HTML entities that are made of two code points