Fix bug where only the first escape character would be escaped.

I wrote a new test for multiple escape characters on the same line and close together and found a bug where we weren't replacing escape sequences that occur after an &amp; or &lt;