I have to convert these symbols:
- > ;
- ✌ ;
- ...
etc.
to:
- >
- ✌
How I can do it? Is anyone function in PHP to do it?
I have to convert these symbols:
etc.
to:
How I can do it? Is anyone function in PHP to do it?
You can use PHP's html_entity_decode()
function:
<?php
$str = ">";
$str = html_entity_decode($str);
$str1 = "✌";
$str1 = html_entity_decode($str1);
?>
More information at http://php.net/manual/en/function.htmlentities.php.
Note: html_entity_decode()
function is the opposite of htmlentities()
function.
Hope this helps, thanks!