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