Page 1 of 1

Clean html tags

Posted: Sat Jun 19, 2010 2:25 am
by rrhandle
I want to clean all the tags in the document of any styling.

Examples:

<p class="alert"> = <p>
<p style="width: 20px> = <p>

Posted: Sat Jun 19, 2010 1:35 pm
by ak47wong
Do a find and replace with these parameters:

Find what: <([a-zA-Z0-9]+)_.*> (replace the underscore with a space)
Replace with: <\1>

This assumes you've enabled POSIX regular expression syntax in the Preferences.

Andrew