Simplify legal char list creation
Add HTML output