convert html to view in php code example
Example 1: show html as text in php
htmlspecialchars('<strong>something</strong>')
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>";
?>