How can i strip including this content
including this content
I know you can use strip tags to remove the tags, but i want everything in between gone as w
Try this:
preg_replace('/]*>([\s\S]*?)<\/h1[^>]*>/', '', 'including this content');
Example:
echo preg_replace('/]*>([\s\S]*?)<\/h1[^>]*>/', '', 'Helloincluding this content There !!');
Output:
Hello There