Вопрос

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

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top