Hey all!
I am having a bit of trouble getting this to work.
You all are probably familiar with the code that strips HTML tags:
$PageText = preg_replace("/<.+?>/","",$WebPa ge);
What I need to do is the exact oposite, I want to strip the page text
and keep the HTML tags.
Lets say I have: "Hello <b>World</b>"
I want to get: "<b></b>"
Thanks in advance
Ion
I am having a bit of trouble getting this to work.
You all are probably familiar with the code that strips HTML tags:
$PageText = preg_replace("/<.+?>/","",$WebPa ge);
What I need to do is the exact oposite, I want to strip the page text
and keep the HTML tags.
Lets say I have: "Hello <b>World</b>"
I want to get: "<b></b>"
Thanks in advance
Ion
Comment