Jump to content

htmlspecialchars_decode


gscomputers

Recommended Posts

Hi,

 

Please forgive me but I am new to this, I am no expert with PHP but have been helping my Brother-in-Law with his website. I have come across an issue which I just cannot get past. the following link is of a site I have been setting up. http://ushersuk.com/search.php?propertyid=10041690- where you see the Full Description, I seem to get a funny symbol instead of a pound sign (£). The site is pulled from an XML Feed which uses &#163 as the code for the pound sign. It somehow cuts out most of the price also, I cannot seem to find a way to make it work and would really appreciate some fresh eyes on this to see what I am missing.

 

The script I have tried is

print "<p style='text-align:left'>".htmlspecialchars_decode($propertyFullDescription)."</p>";

 

I am sure I am doing something wrong. Please help...

 

Grant

Link to comment
Share on other sites

the "code" for a pound sign is &#163;

 

note the semicolon, your feed is not terminating the character reference correctly

the 'funny symbol' represents &#163399, i assume the last bit '399' is the missing part of the price

 

if you can't correct it at source, maybe you can do a search and replace

Link to comment
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.