Jump to content

Allow HTML in Customer Reassurance Module


t.zak510

Recommended Posts

Hello,

I'm trying to allow HTML into the Assurance Block but it's always showing me just plain html instead of translating the html.

I edited the blockreassurance.tpl to:

{if $elements}
  <div id="block-reassurance">
    <ul>
      {foreach from=$elements item=element}
        <li><img src="{$element.image}" alt="{$element.text nofilter}" /> <span>{$element.text nofilter}</span></li>
      {/foreach}
    </ul>
  </div>
{/if}

I also edited the reassuranceClass.php to:

 'text' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml', 'required' => true),

The result is:

 <a href="www.google.com">Security Policy</a>

How to solve this issue please?

Link to comment
Share on other sites

Hello @tantan199 I did some research regarding HTML Purifier Library and it seems that it is a very important Library to prevent HTML XSS by injecting malicious HTML by a user, I find it strange that you ask me to turn it off, either you are stupid or maybe you have no idea about the role of that Library since you ask me to turn it off.

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...