freqdec/slabText — pull request #13 by alecperkins (2012-09-25 17:36:11+00:00)
Title: HTML escaping

Added escaping of HTML-unsafe characters, eg `<` and `>`, which were not getting preserved when automatically creating word groups. Also, I fixed ampersand wrapping to wrap all ampersands, not just the first.

Source html: "CRAS &lt;VESTIBULUM&gt; &amp; ELIT &amp; INCEPTOS"

Without escaping & wrapping all ampersands:

![](http://skitch.droptype.com/Screen shot 2012-09-25 at 1.29.10 PM.png)

With:

![](http://skitch.droptype.com/Screen shot 2012-09-25 at 1.29.01 PM.png)