I'm doing eBooks and I need to use WildEdit to clean my HTML files to semantically pure text. I need to remove attributes to HTML tags.
REMOVE HTML TAG ATTRIBUTES and ARGUMENTS
I need to globally search all occurrences of the <P> tag with or without various attributes such as:
<P STYLE="text-align:center" align="center">
<p align="center">
which I need to change to a semantically clean tag:
<p>
REMOVE TAGS
In other cases, I need to globally remove a specific tag altogether. For example:
<a href="http://dx.doi.org/10.1572/1597720046">Palm eBook</a>
I need to remove the open and close tags, but leave the literal text as shown below.
Palm eBook
If you will help me with this, you will make my life immeasurably easier.
Regards, Marshall Masters
Global S/R HTML Tag Management
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
To change
<a href="http://dx.doi.org/10.1572/1597720046">Palm eBook</a>
into
Palm eBook
search for
<a href=[^>]+>(.+?)</a>
replace by
$1
I'm using POSIX extended Regular expression and Replacement format.
<a href="http://dx.doi.org/10.1572/1597720046">Palm eBook</a>
into
Palm eBook
search for
<a href=[^>]+>(.+?)</a>
replace by
$1
I'm using POSIX extended Regular expression and Replacement format.
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be
Many thanks MudGaurd
I couldn't get your search string to work, but since I'm still at the bumbling fool stage and took a wild guess. I changed it to:
<p[^>]*.>
Worked like a champ.
Many many many thanks, Marshall
<p[^>]*.>
Worked like a champ.
Many many many thanks, Marshall
Thank you s_reynisson
The strip routine for the anchor worked beautifully. When this stuff works, it is flat out amazing.
Many thanks, Marshall
Many thanks, Marshall