The final changes to retain topNode limited html formatting