After upgrade (3.2->3.5) SQL Plugin no longer renders HTML

andrey dmitriev February 20, 2012

{sql:datasource=MINE|output=html|columnLabel=true}

Instead of renderring HTML, you just see HTML in the table cells.

Can this behaviour be changed?


1 answer

3 votes
Remo Siegwart
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2012

In newer versions of the SQL Plugin there is a parameter disableAntiXss which you need to set to true, otherwise the html output would be escaped. See documentation.

{sql:datasource=MINE|output=html|columnLabel=true|disableAntiXss=true}

For security reasons, use of this parameter is restricted to authorized users. It can be enabled by configuring security using the Confluence Macro Security Plugin.

Hope this helps

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2012

Just to add another reference to Remo's answer: SQL Plugin 4.1.0 released

andrey dmitriev March 19, 2012

I ended up disabling the security "feature"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events