i have a .txt file where a line contain an characters "&", when i invoke "HttpPost pageRequest = new HttpPost(pageUrl)" to do java rest API call to update the .txt file to the page, it throws error as: {"statusCode":400,"data":{"authorized":false,"valid":true,"errors":[]},"message":"Error parsing xhtml"} and i can't upload the .txt file to the confluence page, but if i removed the "&" it works fine.
Since confluence page content needs Storage Format, how can i change it to Storage Format in order pass the HttpPost? Thanks alot.
thanks alot, with String replace, its working fine now. Thanks again
Try to replace all & with
&
inside your text file
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.