decoding html characters please?

Hello :slight_smile:

I can’t get html characters to decode properly. Please help me at least get this to work:

The “html character” for an apostrophe is this:

How do I turn this:

into this:

Here is “pseudo-code” to help clarify the type of answer I want:

Hi Christy, here is your answer:

<?php $character = '''; $decoded = magic_decoder_function($character); echo $decoded; ?>

Thank you :-*

Hey Christy, Here is your answer:

[php]<?php
$character = ‘’’;
$decoded = html_entity_decode($character);
echo $decoded;
?>[/php]

http://php.net/manual/en/function.html-entity-decode.php

Sponsor our Newsletter | Privacy Policy | Terms of Service