tag and its content from HTML using php
Below is the text I need to remove tags from
Addiction, stress and subjective wellbeing
The need and signi
Try:
If you want to remove tag only
$html = "
Addiction, stress and subjective wellbeing
The need and significance of traditional shop lot pavements town
The role of wage and benefit in engaging employee commitment
";
echo strip_tags($html);
If you want to remove tags and its
content
$html = preg_replace('#\[{\w},\s\d"]+\
#', "", $html);