I have a method that is returning those typea of strings:
string(6) "<math>"
string(12) " <semantics>"
string(8) " <mrow>"
string(29) " <mi>A</mi><mrow><mo>(</mo>"
string(14) " <mi>T</mi>"
string(27) " <mo>)</mo></mrow></mrow>"
string(13) " </semantics>"
string(7) "</math>"
My goal is to append this to a DOMDocument. Is there a possibility to check if I have a tag in my string, so the tag should be added as child, not node value.
Thank you in advance.