lee101
VIP Member
OK, i am writing a blogging/news/content management script but have got stuck, at nearly the end of it, i havedone everything to manage and write all the stuff but i have an annoying problem here, i'll try to explain as bets as i can:
$content_update is the variable for the content submitted from the form, using a wysiwyg editor (openwysywig), that all works fine, but when the form is submitted it replaces all thei quotes - " with \" , which would normally be fine but they are showing up whin the file is viewded, ie if i wanted "hello" it is showing up like \"hello\", but if i manually remove the \'s ti works fine, so i thought i could use str_replce to replace \" with " before it is written to the file, but i don't really get how it works, could someone please explain it, i have tried
butit just doesn't work, i don;t really understand the str_replace function, could someone please help me with this, as it is really annoying me,
Thanks, Lee
$content_update is the variable for the content submitted from the form, using a wysiwyg editor (openwysywig), that all works fine, but when the form is submitted it replaces all thei quotes - " with \" , which would normally be fine but they are showing up whin the file is viewded, ie if i wanted "hello" it is showing up like \"hello\", but if i manually remove the \'s ti works fine, so i thought i could use str_replce to replace \" with " before it is written to the file, but i don't really get how it works, could someone please explain it, i have tried
PHP:
str_replace('%\"%','%"',$content_update);
Thanks, Lee