README.md
# odysseus
[](https://hex.pm/packages/odysseus)
[](https://hexdocs.pm/odysseus/)
[Houdini](https://hexdocs.pm/houdini/) was a master of escaping, odysseus bound himself to his ship to
survive the sirens... thereby being a master of _unescaping_, I guess.
```sh
gleam add odysseus@1
```
```gleam
import odysseus
import houdini
pub fn main() -> Nil {
// Escaped String
let escaped_string = houdini.escape("<p>My <i>milkshake</i> brings all the <b>boys</b> to the yard...</p>")
// Escaped Sting
let escaped_sting = houdini.escape("I don't drink coffee, I'll take <u>tea</u> my dear<br>I like my <span style='background-color: black; color: white'>toast</span> done on one side<br>And you can hear it in my <i>accent</i> when I talk<br>I'm an <b>Englishman</b> in New York")
// Now, time to unescape them to get the originals!
let unescaped_string = odysseus.unescape(escaped_string)
let caught_sting = odysseus.unescape(escaped_sting)
}
```
Further documentation can be found at <https://hexdocs.pm/odysseus>.
## Development
```sh
gleam run # Run the project
gleam test # Run the tests
```