Some changes to retain topNode limited html formatting