Page 1 of 1

Hot to sanitize title in {localize.eng.t}

Posted: 21 Jun 2020, 08:51
by antisgae
When you use {t} it sanitize it so no probs renaming but if i use {localize.eng.t} it does not and i'm having problems with / that creates directories.

How can I remove the / or better make {localize.eng.t} sanitize like {t}

Bests

Re: Hot to sanitize title in {localize.eng.t}

Posted: 21 Jun 2020, 08:54
by antisgae
Self answer i used this {localize.eng.t.tr('/','-')}

Re: Hot to sanitize title in {localize.eng.t}

Posted: 21 Jun 2020, 09:34
by rednoah
Unfortunately, the format engine can only sanitize top-level bindings implicitly. If you do more complex things in your code then you need to sanitize things yourself as desired.

e.g.

Code: Select all

{localize.eng.t.slash(' ')}