Jump to content

Quote characters in product title.


bsdll

Recommended Posts

My product code has a title of

 

17" Spanner

 

On the recently viewed list, when you hover it says:

 

More about 17" Spanner

 

This is the blockviewed.tpl code:

                        <h5>
                            <a class="product-name"
                            href="{$viewedProduct->product_link|escape:'html':'UTF-8'}"
                            title="{l s='More about %s' mod='blockviewed' sprintf=[$viewedProduct->name|escape:'html':'UTF-8']}">
                                {$viewedProduct->name|truncate:250:'...'|escape:'html':'UTF-8'}
                            </a>
                        </h5>

How do I fix it so the title displays correctly?

 

Thanks.

Link to comment
Share on other sites

It's the |escape:'html':'UTF-8' part of the code that it converting the " to " for security reasons. You can remove that part of the code, or maybe you can do a search and replace like |escape:'html':'UTF-8'|replace:'"':'"' so you can maintain the security.

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