wolves Posted March 16, 2006 Share Posted March 16, 2006 how to convert this "´" html char to real value of it? Quote Link to comment https://forums.phpfreaks.com/topic/5102-html-chars/ Share on other sites More sharing options...
ober Posted March 16, 2006 Share Posted March 16, 2006 Use a semicolon after or it or the value instead of the name: & # 1 8 0 ; (without the spaces) Quote Link to comment https://forums.phpfreaks.com/topic/5102-html-chars/#findComment-18094 Share on other sites More sharing options...
wolves Posted March 16, 2006 Author Share Posted March 16, 2006 I can't modify the string that I get, because it's became from a thirdparty scriptIt's ok to output in the broswer, but I can't use for sql selects/inserts . . . . Quote Link to comment https://forums.phpfreaks.com/topic/5102-html-chars/#findComment-18096 Share on other sites More sharing options...
kenrbnsn Posted March 16, 2006 Share Posted March 16, 2006 Are you using the function mysql_real_escape_string() on your data being inserted into your database? If not, you should be.Ken Quote Link to comment https://forums.phpfreaks.com/topic/5102-html-chars/#findComment-18100 Share on other sites More sharing options...
wolves Posted March 16, 2006 Author Share Posted March 16, 2006 I need the real value of á, &bacute . .. . . ..php doesn't have a native function to convert it? Quote Link to comment https://forums.phpfreaks.com/topic/5102-html-chars/#findComment-18102 Share on other sites More sharing options...
kenrbnsn Posted March 16, 2006 Share Posted March 16, 2006 Look at the function [a href=\"http://www.php.net/html_entity_decode\" target=\"_blank\"]html_entity_decode[/a]().Ken Quote Link to comment https://forums.phpfreaks.com/topic/5102-html-chars/#findComment-18112 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.