Is there a way to get a page content without the HTML tags

Nati Berkovich
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 9, 2022

I am using the following call:
https://<company>.atlassian.net/wiki/rest/api/content/<ID>?expand=body.storage
to get a page content but I get it with the HTML tags.
is there a way to get the content without the HTML tags ?

Thanks !

2 answers

0 votes
Cambridge Machine Learning
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 31, 2023

Similar to Nati I'm finding a problem not being able just to get the body contents. 

Will this functionality be available in the future?

0 votes
Jessica
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 17, 2022

Hi Nati,

Welcome to the Atlassian Community!

I tried the options available in our Confluence Cloud REST API for the content body section, but none of the native options really generates the content without the HTML tags.

I didn't find any options so far in our marketplace as well, and through the UI, there is also not a possibility to generate the content body without the HTML tags. 

We understand this might not the optimal solution for your use case, but this might be necessary to find a third party solution or custom made script in order to remove the HTML tags for you.

Hope this helps at least in terms of clarification, Nati.

Regards,
Jessica

Suggest an answer

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

Atlassian Community Events