I have a Zend\Form\Form validating and filtering input which is sent to a database and an email message, and I notice that the quote characters are escaped by backslashes, as in:
I\'ve seen \"fire\" and I\'ve seen \"rain\"
Before you say magic_quotes_gpc: I am using php 5.6. And Zend Framework 2.5 components as standalones (no MVC). I am rendering my elements semi-manually with
echo $view->formElement($element);
I am not running my input through any filters that would do this, just things like StringTrim. I have used Zend\Form and friends in mvc context doing similar things, with the same versions of everything, and not getting this result.
Do I have to call stripslashes() on my data before doing something with it? That's kind of ugly.
Any ideas?