Asked 2 years ago
24 Feb 2022
Views 848
steave

steave posted

URL encode with Prestashop / smarty




need to encode an url with prestashop at template.

<a href="https://www.e.com/?q=here long text " ></a>

jagdish

jagdish
answered Feb 24 '22 00:00

use escape method in template like this

{"url is here"|escape:'url'}
css-learner

css-learner
answered Feb 24 '22 00:00


<a href="https://www.e.com/?q={"here long text "|escape:'url'} " target="_blank"></a>

Post Answer