wardmaestro Posted March 5, 2006 Share Posted March 5, 2006 HiI have built a back end system for my WAP site to enable easy addition of content. However, ehen I add items like news with apostrophes then the text is inserted into the database as 'we’re all going to the zoo tomorrow' (we're all going to the zoo tomorrow). I try to use HTML_ENTITIES_DECODE in my php, which does convert it to an apostrophe but the sourse code stays the same and so does not display in all WAP browsers. How can I remedy this? Is there a PHP function that will convert the character entities stoted in the database to their numeric entities.Thanks Quote Link to comment https://forums.phpfreaks.com/topic/4151-php-wml-entities/ Share on other sites More sharing options...
ToonMariner Posted March 5, 2006 Share Posted March 5, 2006 yes.have a look at this[a href=\"http://uk.php.net/manual/en/function.get-html-translation-table.php\" target=\"_blank\"]html translation table[/a]Are you using a wysiwyg editor? it maybe that that generates the special entities - use the above table to do a string replace or something similar. Quote Link to comment https://forums.phpfreaks.com/topic/4151-php-wml-entities/#findComment-14417 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.