Fixed code escaping bug for html output