duplicate html escaping bug fixed