Search the Community
Showing results for tags 'strip_tags'.
-
Hi, I am trying to add a HTML5 player to each product on my site, as it conists of products of a digital nature. Although, when I add the relevant code to the short description it shows up in the product details as seen here: http://puu.sh/9V9wB/35e8392c3c.png But on the product list, the HTML is stripped away. As seen here: http://puu.sh/9V9AH/aa11ffd617.png I have found ways of getting around this on earlier versions of PrestaShop, but the code I am told to edit no longer exists in the latest version. Any advice on how I should prevent the HTML code from being deleted would be greatly appreciated. Thanks in advance.
- 25 replies
-
- html stripping
- strip_tags
-
(and 1 more)
Tagged with:
-
Buna ziua, Intrucat vreau sa imi apara o descriere scurta a produsului in lista de produse am introdus in product-list.tpl <div class="product_desc">{$product.description_short|strip_tags:'UTF-8'|truncate:120:'...'}</div> Problema este ca aceasta instructiune imi afiseaza descrierea scurta dar doar text si nu imi afiseaza <br> ori tabel ori textul bolduit ci doar text simplu. Vreau sa fac ceva in genul asta http://www.easylight.ro/lanterne-led. Am scos |strip_tags:'UTF-8'| si imi da voie sa adaug ceva mai multe caracteristici textului dar din ce am citit este o problema de securitate. Ma puteti ajuta va rog cu o solutie mai buna? Multumesc anticipat
- 9 replies
-
- strip_tags
- formatare descriere
- (and 2 more)
-
Bonjour à tous, Je viens de remarquer ce qui me semble être une erreur dans le fichier template product-list.tpl pour la version 1.4.4.0 de Prestashop, voici le code en question : <p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}">{$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'}</a></p> on remarque plus particulièrement ce bout là qui m'interresse plus particulièrement : strip_tags:'UTF-8' or dans la documentation de smarty pour le modificateur strip_tags ( http://www.smarty.ne....strip.tags.tpl ), l'option "UTF-8" n'existe pas. Les options possibles sont : strip_tags:true et strip_tag:false En remplaçant par le code suivant ça fonctionne mieux : <p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:360:'...'|strip_tags:false|escape:'htmlall':'UTF-8'}">{$product.description_short|truncate:360:'...'|strip_tags:false}</a></p> Bien cordialement, elkastor
- 2 replies
-
- smarty
- strip_tags
-
(and 3 more)
Tagged with: