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>
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.
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?
It looks like you're new here. Sign in or register to get started.