Jump to content

html in features value.


rfourt

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...