rfourt Posted October 14, 2016 Share Posted October 14, 2016 Anyone know how to make it so the Value field in "Features" would not strip away html code?Thank you., Link to comment Share on other sites More sharing options...
rocky Posted October 14, 2016 Share Posted October 14, 2016 You'll need to create override/classes/FeatureValue.php with the following: <?php class FeatureValue extends FeatureValueCore { public function __construct() { FeatureValueCore::$fields['name']['validate'] = 'isCleanHtml'; parent::__construct(); } } You may also need to change line 477 of product.tpl and remove the |escape:'html':'UTF-8' to prevent the HTML being encoded. <td>{$feature.value|escape:'html':'UTF-8'}</td> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now