Small Elixir library for encoding and decoding HTML entities.
5990f698fe
* Refactor numeric decode regex to module attribute, avoid recreating it with every call. * Use character table also when encoding. This results in some compile warns, but the code works as expected. Removing the warnings is for TODO. * Bump elixir version to 0.11.x * Write tests for encoding and decoding |
||
---|---|---|
lib | ||
test | ||
mix.exs | ||
README.md |
ExCoder is a small Elixir library for encoding and decoding HTML entities. I decided to write it because I needed to decode HTML entities (without caring about the mess of parsing HTML) and I did not want to use a full XML library from the Erlang side.
ExCoder supports both decoding named and numbered HTML entities. Encoding will always use the hexadecimal numbered format.