fixed html reading and writing through ObjectModelSAXParser