Purify unsafe HTML and CSS into standards compliant and namespaced code.