Upgrader double encodes < to &amp;lt;