Made purifyHTML() static