When using the confluence REST API and posting HTML for the content when I have a > or < in the content it errors out. When I read a page content with a > or < I see it come out as < and > respectively. When I switch my content post to use the same representation, they show up literally as < and > in the page instead of the < and >.
What content type are you submitting your request body as?
I know this is an old post, however I am facing the same issue.
Trying to hit the following: https://<confluence base>/confluence/rest/api/content?spaceKey={SPACEKEY}&title={TITLE}&expand=body.storage"
When the title includes a ">" or "<" it completely breaks/errors, however it does work when these symbols are encoded.
>
is %3E
<
is %3C
I cannot find anything in the documentation on special characters, is there a list of which characters that must be encoded for the API to not error out?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.