MircParser
Parses mIRC formatting into HTML strings or a list of tokens. It handles properly closing tags and generates structurally valid HTML.
Ideas
-
Support hex colours (
04). - Fully convert tags over to semantic CSS style based versions.
- Allow different kinds of tags; pass a module implementing protocol?
- Sanitize HTML for you instead of assuming it's already so
Installation
If available in Hex, the package can be installed
by adding mircparser to your list of dependencies in mix.exs:
def deps do
[
{:mircparser, "~> 0.2.0"}
]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/mircparser.