I am using Python to connect to API. I want to find and replace some texts in pages with new texts while keeping the HTML/CSS formating.
But for Content-Type, the PUT API seems to only support "
@jimqian, could you provide an example of what you are trying to insert?
<p>apple apple.</p><p><span style="color: rgb(206,145,120);">New Sentence</span></p><p>banana</p><p><span style="color: rgb(206,145,120);">New Sentence.</span></p><p>orange</p><p><span style="color: rgb(206,145,120);">New Sentence.</span></p><p>pineapple</p>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am basically trying to change "Old Sentence." to "New Sentence." for example. While ignoring things that are neither: like "pineapple" and also keeping the original formatting: like <p>, <span, and color.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And it's being inserted directly as that? Are you inserting it inside of an HTML macro?
Also, are you putting in "<p>apple apple.</p>..." are did it just render that way when you put it into the text box here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@jimqian, you need to enable it at the system level. https://confluence.atlassian.com/doc/html-macro-38273085.html
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.