Author Topic: HTML in the Blurb?  (Read 328 times)

Offline andrewatmcd

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
HTML in the Blurb?
« on: May 20, 2019, 03:19:39 PM »
Hello all,

If I wanted to use HTML in the product blurb (inserting a bulleted list, for instance), what would I need to edit and where?

Many thanks,
Andrew.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1782
  • Karma: +247/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: HTML in the Blurb?
« Reply #1 on: May 21, 2019, 04:48:41 AM »
all blurb stored in database as html-entities to prevent injections.
You should to change your tpl (product/product.tpl) and decode entities.
Just find variable $product_info['blurb'] and replace with html_entity_decode($product_info['blurb'], ENT_QUOTES, 'UTF-8');
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline andrewatmcd

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: HTML in the Blurb?
« Reply #2 on: May 21, 2019, 01:04:40 PM »
all blurb stored in database as html-entities to prevent injections.
You should to change your tpl (product/product.tpl) and decode entities.
Just find variable $product_info['blurb'] and replace with html_entity_decode($product_info['blurb'], ENT_QUOTES, 'UTF-8');

Ah, excellent! Thank you!

 

Powered by SMFPacks Social Login Mod