The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 08-15-2013, 10:33 AM
gavin douglas's Avatar
gavin douglas is offline
Member
 
Join Date: Apr 2013
Posts: 31
Default

p tags showing up in description


Using Tempo to grab some data from the Product api and when I try to grab the product description Ecwid is showing <p> tags.

Really annoying

Can someone assist please
  #2  
Old 08-16-2013, 01:28 AM
smoothsailingco.com's Avatar
smoothsailingco.com smoothsailingco.com is offline
 
Join Date: Dec 2011
Location: CA / FL
Posts: 345
Default

I'd try the tempo thread: http://www.ecwid.com/forums/showthread.php?t=6038 or mod forum for more help.

I don't use it myself but it looks like there's a replace filter: https://github.com/twigkit/tempo#-fi...n-replacement-

Code:
{{ field | '/<p>|<\/p>/ig', '' }}
Might work.
  #3  
Old 08-16-2013, 08:01 AM
gavin douglas's Avatar
gavin douglas gavin douglas is offline
Member
 
Join Date: Apr 2013
Posts: 31
Default Thanks - I used Javascript

Thanks for the reply.

I ended up simply using the string function .replace in Javascript.

 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
tags

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:10 AM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.