Answers for "html decode php"

1

html_entity_decode

html_entity_decode

$temp = "<font class='red font-price'> 30 </font>";
echo html_entity_decode($temp);
Posted by: Guest on November-09-2020
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>";
?>
Posted by: Guest on October-13-2020

Browse Popular Code Answers by Language