function stripAllTagsBut pHtml,pTagsList
-- pTagsList IS A LIST OF TAGS NOT TO EXCLUDE FROM PARSING
-- EX. LINE 1 OF pTagsList CAN BE img AND LINE 2 CAN BE b, etc..
It's used to strip all tags from HTML but those in the pTagsList parameter.
IOW, it can be used to grab the HTML of a page, and
On Fri, 26 Jan 2007 12:56:36 -0600, Chipp Walters wrote:
function stripAllTagsBut pHtml,pTagsList
-- pTagsList IS A LIST OF TAGS NOT TO EXCLUDE FROM PARSING
-- EX. LINE 1 OF pTagsList CAN BE img AND LINE 2 CAN BE b, etc..
It's used to strip all tags from HTML but those in the pTagsList
On Jan 26, 2007, at 10:56 AM, Chipp Walters wrote:
function stripAllTagsBut pHtml,pTagsList
-- pTagsList IS A LIST OF TAGS NOT TO EXCLUDE FROM PARSING
-- EX. LINE 1 OF pTagsList CAN BE img AND LINE 2 CAN BE b, etc..
It's used to strip all tags from HTML but those in the pTagsList
Thanks both Ken and Trevor...I'll take a look at these. :-)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
I use a field to strip my HTML. I just put it in the htmlText of a hidden
field and then get the text of that filed and all HTML tags are
conveniently gone...
That doesn't help Chipp, but is a short two-liner replacement for Ken's
algorithm.
At 01:31 PM 1/26/2007, you wrote:
On Fri, 26
On 1/26/07 10:56 AM, Chipp Walters [EMAIL PROTECTED] wrote:
function stripAllTagsBut pHtml,pTagsList
-- pTagsList IS A LIST OF TAGS NOT TO EXCLUDE FROM PARSING
-- EX. LINE 1 OF pTagsList CAN BE img AND LINE 2 CAN BE b, etc..
It's used to strip all tags from HTML but those in the pTagsList
Obviously
put item 2 of LNN cr after newHtmlStr
should be
put item 2 to -1 of LNN cr after newHtmlStr
Jim
On 1/26/07 1:20 PM, Jim Ault [EMAIL PROTECTED] wrote:
On 1/26/07 10:56 AM, Chipp Walters [EMAIL PROTECTED] wrote:
function stripAllTagsBut pHtml,pTagsList
-- pTagsList
On Jan 26, 2007, at 12:13 PM, Trevor DeVore wrote:
Well, I have one I've been working on that takes a list of things
to strip. You could modify it to fit your needs maybe. The first
version was much more compact and use matchText. Then I stress
tested it and it was slow and I had to