Handling for unknown format in HTML output.

Signed-off-by: Ryan Helinski <rlhelinski@gmail.com>
Better handling of invalid input.

Signed-off-by: Ryan Helinski <rlhelinski@gmail.com>