c_shelswell Posted May 21, 2009 Share Posted May 21, 2009 Hi I'm trying to add languages to my site. In an area to edit a news item i've got a text box that is pre populated. Problem is that quotation marks in it are stopping it displaying properly. I've got the information stored in the database as htmlentities as: [pro]kit"test"///\\\'''deü©ΣДçگẫ_cur£$ which should display kit"test"///\\\'''deü©ΣДçگẫ_cur£$ i'm having to use html_entity_decode to display it properly but when you do that the quotations close the text box early such as: <input type='text' name='EN_title' class='myInputReg' value="[pro]kit"test"///\\\'''deü©ΣДçگẫ_cur£$" /> anyone have any ideas how to solve this? Cheers Link to comment https://forums.phpfreaks.com/topic/159118-solved-how-to-display-this/ Share on other sites More sharing options...
c_shelswell Posted May 21, 2009 Author Share Posted May 21, 2009 got it sorted! for anyone else who comes across this problem the solution is actually pretty simple: echo htmlspecialchars(html_entity_decode($title)); Link to comment https://forums.phpfreaks.com/topic/159118-solved-how-to-display-this/#findComment-839211 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.