theZiz / aha

Ansi HTML Adapter
Other
915 stars 88 forks source link

Escape HTML special characters in title #39

Closed suve closed 6 years ago

suve commented 6 years ago

This changeset makes the program escape HTML special characters (<&">) when printing the document <title>. Previously it was possible to break the document subtly by doing e.g. aha --title 'ha</title>HA HA'.

theZiz commented 6 years ago

Thanks, looks very good to me! I like your solution.