Added escape for < and > when writing HTML.