This may have gone a bit far the other way - it will render properly with just the &lt; encoded, which will make it a little easier to read in the code file.