Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to keep HTML tags?

Luka Simon Thies
Contributor
February 10, 2025

I am automatically updating a table on a confluence page using the REST API.

To make this process easier, I wrote a template and added tags to the individual cells.

<td data="TAG">

Updating the page works completely fine, but when I try to get the page again, all these data-tags are missing again.

Is there a way or setting, that I am missing here?

1 answer

1 accepted

2 votes
Answer accepted
David Bakkers
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 11, 2025

Hello @Luka Simon Thies 

Is there a way or setting that I am missing here?

This is a frequently asked question. In short, the answer is no.

When you submit HTML as content for a page, it is parsed by Confluence, then sanitised, and some HTML element attributes, like data, are stripped out.

This is because Confluence's internal storage format is not pure HTML, but a hybrid format Atlassian calls XHTML, and it doesn't support the entire set of HTML objects / elements.

Google 'Confluence XHTML page storage format' to learn all about it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events