I made something that parses input formed in XML, however the input might consist of HTML. When processing the XML in SimpleXMLElement, it takes the plain text between the tags but not the HTML (I assume cause it has processed it like XML). Is there any way I could get it to ignore HTML tags and treat it like plain text? This is the type of input btw:
<entry id="1">Some text <img src="image.jpg"/> hello</entry>