8 Commits

Author SHA1 Message Date
Krzysztof Kowalczyk
8641ad4e76 rename html.HTMLFlags => html.Flags 2018-01-27 18:39:03 -08:00
Krzysztof Kowalczyk
7b88bd6d02 move html renderer to htmlrenderer package 2018-01-27 18:22:11 -08:00
Krzysztof Kowalczyk
0b8b77db40 export EscapeHTML 2018-01-27 00:52:23 -08:00
Krzysztof Kowalczyk
3ad26698c5 parallelize tests to go from 16 secs => 10 secs for 'go test' 2018-01-25 13:54:50 -08:00
Krzysztof Kowalczyk
7557d13318 change package name 2018-01-25 13:01:19 -08:00
Vytautas Šaltenis
ea57e93666 Several fixes after code review 2017-02-02 11:54:10 +02: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