Fix string append memory issue. Complete duplicated html content sanitization