Wlieo Posted December 14, 2010 Share Posted December 14, 2010 Bonjour,Dans la description courte produit du block new products, du code html s'affiche au niveau du texte tronquer, exemple :titre produitdescription de monJ'ai la ligne suivante dans mon fichier blocknewproducts.tpl : {$newproduct.description_short|truncate:27:'..'|strip_tags|escape:html:'UTF-8'} Comment faire disparaitre ce code, svp ?Merci d'avance Link to comment Share on other sites More sharing options...
coeos.pro Posted December 15, 2010 Share Posted December 15, 2010 Bonjour, si vous avez du code html qui s'affiche c'est peut être par ce que vous avez écrit (ou copié/collé) du code html... http://imm.io/media/2y/2y5r.png Link to comment Share on other sites More sharing options...
Wlieo Posted December 15, 2010 Author Share Posted December 15, 2010 Bonjour,Ce n'est pas le cas, je n'ai pas écrit de code html.Autre exemple, dans ma description courte j' écris :Une évolution et il s'affiche dans mon block : Une évolutionMerci pour votre aide Link to comment Share on other sites More sharing options...
Wlieo Posted December 15, 2010 Author Share Posted December 15, 2010 Dans la ligne de code : {$newproduct.description_short|truncate:27:'..'|strip_tags|escape:html:'UTF-8'} j'ai supprimé : |escape:html:'UTF-8'et l'affichage est correcte.Je ne sais si c'est la bonne solution mais ca fonctionne. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now