Close

Encode HTML Code in Product Name

baloghc
7 years ago
#13320 Quote
Avatar
  • 79
I need help making a modification to the Instant Search plugin.  

The problem is we have the trademark symbol in some of our product names(&#174).  I need to find a way to encode this in the InstantSearch.cshtml view.  

I need to modify this line...
'<div class="title">${ data.Name }</div>' +

but I'm not sure with that kendo code how to do it.  Please advise.

Thanks,
Chris
Nop 3.7 - ArtFactory
Nop 4.0 - Lavella, Venture, Smart, ArtFactory
hristian.dimov
7 years ago
#13321 Quote
Avatar
  • Moderator
  • 386
baloghc wrote:
I need help making a modification to the Instant Search plugin.  

The problem is we have the trademark symbol in some of our product names(&#174).  I need to find a way to encode this in the InstantSearch.cshtml view.  

I need to modify this line...
'<div class="title">${ data.Name }</div>' +

but I'm not sure with that kendo code how to do it.  Please advise.

Thanks,
Chris


Hi Chris,

Just replace this:

${ data.Name }

with this:

#= data.Name #

Hope this helps!
Regards,
Hristian Dimov
Nop-Templates.com