visionmedia/jade — pull request #981 by sansumbrella (2013-04-21 15:21:12+00:00)
Title: Only escape ampersands if they aren't the start of an escape seq.

e.g. ’ now correctly makes it through jade and displays in
browser as a right single quote. An ampsersand on its own will
still be properly escaped.

Uses negative look-ahead in the regex.

Before:
& -> &amp;
& -> &
’ -> &rsquo;

Now:
& -> &
& -> &
’ -> ’