...

View Full Version : special character handling



kenny873
04-11-2003, 04:37 AM
I have a forum and in add/edit/quote/reply, people can preview what they have entered, but if they entered special charecter like " ' (double or single quote), the php will generate a \" \' in the preview and in the form field, so when they submit, the \ will also appear.

How can I handle this...

the column field is called $body

where and how should I solve it?

missing-score
04-11-2003, 09:05 AM
This will get rid of those slashes:



<?php

stripslashes($body);

?>


:thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum