HTML Stripper

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
frbcoindude
Posts: 9
Joined: Fri Mar 14, 2003 9:10 pm
Location: Chicago

HTML Stripper

Post 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:
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Re: HTML Stripper

Post 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?
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Re: HTML Stripper

Post 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;
Guest

Re: HTML Stripper

Post 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
Guest

Re: HTML Stripper

Post 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
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Re: HTML Stripper

Post 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...
frbcoindude
Posts: 9
Joined: Fri Mar 14, 2003 9:10 pm
Location: Chicago

Found it....

Post 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.
Post Reply