Jump to content

keeping special characters in long form in an input


koolaidman52

Recommended Posts

sorry,

 

basically, I'm storing a page in a DB and everything that I want is entered into a text area on a form... including php code (nevermind how I get it back out, this happens upon submission of the form)

 

so I have a page entry which reads from a feed, some of the stuff in the feed has character "’", this displays as "’" when the stuff is outputted, in the feed it's ’

my question is how do I keep the following line exactly how it is when my form is submitted, php or mysql or something converts the ’ to "’"

$title = str_replace("&#8217",''', $title);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.