Basically what im trying to do is find and replace all the "nonvalid tags" in an html document. By nonvalid i mean something like <q></q> <html></html> are valid and stuff like <foo></foo> <baz></baz> <tmpl></tmpl> are non valid tags i would replace. Is there any module that would do this, or do i really have to go write my one?