Pregunta

I have a variable that contains square brackets e.g.

$myvar = '[my foo]';

in my html I have

[var.myvar;htmlconv=no;noerr]

for some reason the opening brackets [[ are being coming up in the html source as follows

[my foo]

any reason why the opening brackets are being changed to html enties

I am using TBS Version : 3.8.1

¿Fue útil?

Solución

Replacing the opening bracket [ is a way to protect your template from TBS tag injection. This is a normal TBS feature which is documented here.

You can avoid this behavior using parameter protect=no.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top