Good day,
I want to remove everything before and after a certain character sequence in a string.
E.g:
$string = 'TESTING<html>This is a string</html>ANOTHER TEST!!';
I want everything before <html>
and after </html>
to be removed, so that the string looks like this when I write it to a database:
<html>This is a string</html>
Important thing here is that <html>
and </html>
keep existing in the string.
Anyone got an idea?
'<html>'
is not a character, it's a string