added code to remove <table>