WordPress ignoring code in places?


I am using the REST API to update a page using the following html

Generic line, we will try and answer it in a series of articles.<br><br> step-by-step approach:<br><br> <ol>     <li><b>Choose a broker</b><br><br> This is a random line</li> </ol> 

When I preview the page on local machine the formatting is perfect i.e. form IDE to mozilla. When I upload it to wordpress there is one line break after “Choose a broker” the other <br> does not work. I have tried placing it in different locations and it works sometimes and others it just wont give a line break.

What would be a way around this?

I hope this is the right place to ask this question.

TIA