I have a contact form, and for the textarea anytime someone writes a word containing an apostrophe, it renders it as an html character code - \'
So If someone were to type: Hello I'm Sergio - I would get in my email: Hello I\'m Sergio.
Does it have anything to do with htmlspecialchars? Or is it something else?
This is for a wordpress site, and the textarea code is as follows:
<textarea rows="10" cols="39" name="cf-message" required>' . ( isset( $_POST["cf-message"] ) ? esc_attr( $_POST["cf-message"] ) : '' ) . '</textarea>
Thanks so much for any input.