Input validation to help prevent XSS when rich text editors are needed. All credit to eksith (eksith.wordpress.com)