version from MediaWiki 1.22wmf9
DBpediaFunctions::cleanHtml() patch