I have a string that is returned from PHP through AJAX. The string value is like this:
<img src="/images/error.png"/>Invalid name`
Is there any way to cut the string starting with <
and ending with >
?
I only need the <img/>
from the string. I do not want to return the only <img/>
from PHP because the full string is used in another page.