I have a api response that is a combination of plain text and image tag. What is the best way to separate plain text from the response? I need to separate plain text so I can style it separately.
This is the example of a response:
This is the cap you unscrew to open when you refuel your car <img alt="blah" src="https://www.lifesure.co.uk/cms/wp-content/uploads/2011/04/Tyre-Illustration-500.jpg" />