Special characters help in feedback form

Hi

On one of my customers websites, I have a feedback form that automatically adds the feedback to the testimonials page by adding it to the testimonials database table and displays it on the testimonials page

I have noticed that if a special character like a ’ or something, the feedback is not added

I can’t remember how to do it so that the feedback is added if it has a special character in the text

Can someone help please

Kind regards

Ian

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




<?php
$str = "Is your name O'reilly?";

// Outputs: Is your name O\\'reilly?
echo addslashes($str);
?>