Official comment
Rexiti,
If you could provide the HTML of the page(or part that is necessary) as well as the text you are using, I can check to see if I can reproduce the issue.
Meanwhile, what I’m not understanding is the need to compare tags in plain text. I would have used Verify-Element with XPath expression to check anything I want against a tag in HTML.