You are here:  » Allowing HTML in product reviews

Support Forum



Allowing HTML in product reviews

Submitted by FirstByte on Sun, 2009-07-05 18:36 in

Hi David,

I'm sure you've cover this before (or maybe for another feature) but I'm interested in display the html in the product reviews.

Is there a quick mod for this?

regards
Rod

Submitted by support on Sun, 2009-07-05 19:28

Hi Rod,

The HTML is blocked by the call to htmlentities() on line 15 of html/ratings.php:

<?php print htmlentities($review["comments"],ENT_QUOTES,$config_charset); ?>

To permit HTML, simply replace this with just:

<?php print $review["comments"]; ?>

Cheers,
David.

Submitted by FirstByte on Tue, 2009-07-14 06:05

Thanks David,

works a treat.