Answers for "convert and html code to string and return tha string"

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
1

convert element to html string

html_entity_decode

$temp = "<font class='red font-price'> 30 </font>";
echo html_entity_decode($temp);
Posted by: Guest on November-09-2020

Code answers related to "convert and html code to string and return tha string"

Browse Popular Code Answers by Language