in a plugin I am saving text input fields (textarea) with a update_option function.
If a single quotes is in the text it gets an backslash in front. I am saving the text with htmlentities($text, ENT_QUOTES)m but still it gets always an backslash added. So the string becomes with each save longer.
Any idea, why?