1. Filter out possibly insecure xhtml-im elements.