Single and double quotes in HTML text

Hi all,

I have a text field with HTML descriptions using the HTML editor. I want to be able to use single quotes as well as double quotes in the field, but this is getting issues with the SQL statements.
I was thinking of replacing one of the quotes (the single or the doubles) in PHP for another character with another never used character, before inserting in and after selecting it from the database. Anyone a better idea how to handle with this?

Thanks,
Martin

Maybe this?

http://php.net/manual/en/function.addslashes.php

Sometimes things are so simple …
Thanks, just wasn’t aware of this one.