< and > should be magic only when generating HTML

I'd drop that altogether but it's best to stay backwards compatible.

With this change, if one defines ESCAPES to expand `<` into something else than `&lt;`, uses of `<` that look like HTML tags or comments are not considered special.