convert html for adding to url php code example
Example 1: html_entity_decode
html_entity_decode
$temp = "<font class='red font-price'> 30 </font>";
echo html_entity_decode($temp);
Example 2: convert html code php
// html_entity_decode (php)
Ex:
<style>
.red {
color: red;
}
.bold {
font-weight: bold;
}
</style>
<?php
echo "<font class='red bold'> * required </font>";
?>