title: How to sanitize data received from WYSIWYG Editor?
body: <p>I have a typical WYSIWYG editor for a blog, which has the ability to embed youtube videos and videos from some other commonly known sources. the editor is JavaScript based. And it adds too much of html tags and java-script in the content that I receive. As i have to store this data received from the editor in my MySQL database. I want to sanitize it. What is the best way to sanitize this data and make it safe to store in the database and further deal with it?</p>