convert html code php

PHP
// html_entity_decode (php)

Ex:

<style>
.red {
  color: red;
}

.bold {
  font-weight: bold;
}
</style>
<?php
echo "<font class='red bold'> * required </font>";
?>

  
Source

Also in PHP: