I feel kind of stupid asking this question but here it is: I have a text variable from my mysql database that I'm simply trying to print on the html page. This text contains HTML tags that will be interpreted by browser.
The current code is
<div class="sectionContainer">
<?php echo htmlentities($prize['description'],ENT_QUOTES,'UTF-8') ?>
</div>
In the browser I end up having:
<div class="sectionContainer">
"<p>Some HTML content</p>"
</div>
How do I get rif of the quotes so that the browser can interprete the HTML tags?
<div class="sectionContainer">
<?php echo $prize['description'] ?>
</div>
You stored the description in the database with quotes. Remove those quotes.