TinyButStrong - the PHP Template Engine
Categories > TinyButStrong general >

Merging a block, which is actually html

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs

By: Michael Frey
Date: 2014-02-25
Time: 13:36

Merging a block, which is actually html

I am successfully merging a block.

One of the values I am merging is a link, but this string <a href="#">Link</a>, is actually inserted as a string, not as HMTL.

How can I achieve this?

Thank you
By: Sheepy
Date: 2014-02-26
Time: 09:06

Re: Merging a block, which is actually html

This is a feature to make sure data is always displayed correctly and to prevent XSS attacks.

You need to specify "htmlconv=no" to disable html escaping.

e.g. [link; htmlconv=no]

See manual for other options.
By: Skrol29
Date: 2014-02-28
Time: 22:32

Re: Merging a block, which is actually html

Since TBS 3.8.0, "htmlconv" is renamed "strconv", but still compatible.
By: Sheepy
Date: 2014-03-01
Time: 06:06

Re: Merging a block, which is actually html

Oh yes, thanks for the reminder!