Page 1 of 1

HTML Stripper

Posted: Thu Mar 20, 2003 7:47 pm
by frbcoindude
When I purchased 4.5, I used to have a pretty decent HTML stripper that was in my macro program. Did the upgrade to the 4.62 and now it is gone because I had to remove the old 4.5 version to make 4.62 work okay.

Anyone know where I can get that macro again? Or did I just miss it here in the download library?


Bob :roll:

Re: HTML Stripper

Posted: Thu Mar 20, 2003 8:32 pm
by jeffy
What about a simple regular expression search, where you search for

Code: Select all

<[^>]+>
and replace it with "" (nothing)?

As long as you are sure that every displaying "<" and ">" is written as "&" and "&", what about "HTML stripping" is more complicated than this?

Re: HTML Stripper

Posted: Thu Mar 20, 2003 8:34 pm
by jeffy
jeffy wrote:As long as you are sure that every displaying "<" and ">" is written as "&" and "&"...
That's [AMPERSAND]lt; and [AMPERSAND]gt;

Re: HTML Stripper

Posted: Thu Mar 20, 2003 11:01 pm
by Guest
jeffy wrote:What about a simple regular expression search, where you search for

Code: Select all

<[^>]+>
and replace it with "" (nothing)?

As long as you are sure that every displaying "<" and ">" is written as "&" and "&", what about "HTML stripping" is more complicated than this?

A regular expression? If you say so.... Maybe that Discrete Mathematics course next quarter WILL make a difference

Re: HTML Stripper

Posted: Thu Mar 20, 2003 11:12 pm
by Guest
Anonymous wrote:A regular expression? If you say so.... Maybe that Discrete Mathematics course next quarter WILL make a difference
Just check "Regular Expression" in the "Replace" dialog.

And then, check out my FAQ on TextPad regular expressions, at the url below. :lol: :D

Re: HTML Stripper

Posted: Thu Mar 20, 2003 11:15 pm
by jeffy
Anonymous wrote:And then, check out my FAQ on TextPad regular expressions, at the url below. :lol: :D
Hmmm... The forum logged me out, so my signature (and therefore "the url below") didn't print. Here it is...

Found it....

Posted: Tue Mar 25, 2003 7:31 pm
by frbcoindude
Well, what I was looking for was under the

Configure | Preference | Macros

section. Actually, there are 2, but I had to highlight one and add it and now it is there.