Here is my code
$str="<div>this is the variable</div>";
I want to remove its html tag <div> without using strip_tags.
I need $str="this is the variable"
Because my server is not working with strip_tags.
I know it is possible with preg_replace. but i dont know regex.
So please suggest me the solution.
Thank you in advance.
And of course, don’t parse HTML with regex 🙂
DEMO.