Jump to content

Recommended Posts

Hi

I 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
Link to comment
https://forums.phpfreaks.com/topic/4151-php-wml-entities/
Share on other sites

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.
Link to comment
https://forums.phpfreaks.com/topic/4151-php-wml-entities/#findComment-14417
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.