I made the Simplemed editor, and I form the values, something like this:
# Article
Text, text, text
[link](http://url.com)

It writes data in this form to the database. How to correctly remove all the markup from the database?