fixing badly formed html