I'm stuck trying to echo my product descriptions correctly for my eCommerce store.
Is it possible to write formatted HTML (i.e. with elements and tags... to youtube links, etc) as text in a MySQL description field and then echo it with PHP correctly formatted?
At the moment I am using...
<?php
echo "<p>".Helper::encodeHTML($product['description'])."</p>";
?>
...but as I say it doesn't output as formatted.
Thanks for the help! :)
Edit; Fixed for the moment ('less anything changes) with...
echo html_entity_decode($var['string']);
i.e.
echo html_entity_decode($product['description2']);
http://uk1.php.net/manual/en/function.html-entity-decode.php
Contents: -
– Ashley Smith Jul 27 '15 at 23:23