Commit Graph

4 Commits

Author SHA1 Message Date
Faruq Rasid
6762cd3685 Only allow valid HTML entities to be unescaped. Do not escape HTML entities in code blocks. 2018-09-06 17:05:43 +08:00
Faruq Rasid
c5c549b063
Fix html renderer escaping valid entities
This should fix #403
2018-07-26 11:48:47 +08:00
Vytautas Šaltenis
461803619b Simplify escapeHTML and uncomment it's benchmark
Simplify and optimize escapeHTML as per @Ambrevar's suggestion: lean on
the fact that we're dealing with bytes: declare a 256-element array with
most of it filled with zeros, except for the few slots that need
escaping. This avoids some conditionals in a tight loop.

Also, uncomment it's benchmark.
2016-10-08 18:02:28 +03:00
Vytautas Šaltenis
993325d13f Roll our own implementation of HTML escaper 2016-09-10 14:33:37 +03:00