Hi folks,
Having some fun with strip_tags here. I've been using an old version of Red Tempest search (now gone, it seems) on one of my sites for ages now, but in the summer I redesigned the whole site from standard html to PHP to make maintenance and updates easier. Everything is now streamlined and very easy to change.
But! RedTempest used strip_tags before inserting the plain text into the database, but now that I'm using PHP things seem to break rather a lot. Is there a version that works on the PHP parsed version of the page rather than the raw file? If I save the page source from a browser and run strip_tags on that it's fine, but on the php file itself it's b0rked.
Sample lines from php file - these appear to break strip_tags so the first line is sort of parsed but the 2nd is ignored:
<a href="<?php print "/scripts/picshow.php?image=grandstandifs.jpg&folder=".$cwd."&back=".$home ?>">Grandstand Invaders From Space </a>game, boxed perfect with instructions.<br />
<a href="scramble.php">Grandstand Scramble</a>, boxed with instructions and in excellent nick.<br />
You can guess what the html equivalent is 🙂
I'm not a n00b but there's a fine line between what's right and what works!
Trying to get my head round regexps ATM 😃