Hi to all,
I have a great problem with characters like ' and ".
I made a "form"in HTML code.
After filling it I assign the text in the field to a $var and print it. If my $var contains single or double quotes this is the result of echo $var;
\"text\" \'text\'
I need this result:
"text" 'text'
I tried using the function htmlspecialchars or htmlentities but it doesn't seem work.
Do someone know what can help me?
Thank you in advance for your help.