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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.