koolaidman52 Posted May 14, 2008 Share Posted May 14, 2008 Hi, I need to keep special characters like & in the long form (not &) in a form I'm using. I tried escaping it and putting it in single quotes, neither worked. I'm guessing its a browser thing, anybody know of a workaround for this? thanks Link to comment https://forums.phpfreaks.com/topic/105546-keeping-special-characters-in-long-form-in-an-input/ Share on other sites More sharing options...
haku Posted May 14, 2008 Share Posted May 14, 2008 You are going to have to explain in more detail than that. Link to comment https://forums.phpfreaks.com/topic/105546-keeping-special-characters-in-long-form-in-an-input/#findComment-540676 Share on other sites More sharing options...
koolaidman52 Posted May 14, 2008 Author Share Posted May 14, 2008 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("’",''', $title); Link to comment https://forums.phpfreaks.com/topic/105546-keeping-special-characters-in-long-form-in-an-input/#findComment-540682 Share on other sites More sharing options...
mraiur Posted May 14, 2008 Share Posted May 14, 2008 try converting it whit html_entity_decode() ... Link to comment https://forums.phpfreaks.com/topic/105546-keeping-special-characters-in-long-form-in-an-input/#findComment-540685 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.