homepage Welcome to WebmasterWorld Guest from 54.167.174.90
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
How to strip html tags with dreamweaver?
doob

5+ Year Member



 
Msg#: 3783801 posted 9:49 pm on Nov 10, 2008 (gmt 0)

I have many older pages with font/style/size tags. Any easy way to strip out all tags from an html document? I have dreamweaver cs3.

I'm recoding old pages by hand to use style sheets. Total pain in the butt!

Insights welcome!

-doob

 

i like your sleeves

5+ Year Member



 
Msg#: 3783801 posted 1:45 pm on Nov 12, 2008 (gmt 0)

well since you've already had this question posted for two days, you might have already finished it or answered it for yourself. but if not, what i do is scan the page for multiple recurrences then i use the find/replace function. you can search for anything that recurs frequently and replace it with either nothing or with your new css tags. i'm not extremely familiar with dreamweaver - i prefer bbedit etc. - but i'm sure you can do this there too. if not you can copy the code and paste into a text editor and strip tags there using find/replace. hope this helps. if you find another solution besides this one, please share! good luck.

doob

5+ Year Member



 
Msg#: 3783801 posted 12:42 am on Dec 14, 2008 (gmt 0)

Thanks for the reply. I have been using the search and replace with the replace field empty but was hoping there was a more global way to do this and maybe DW had something built in to make user's lives easier. Perhaps not.

-Dru

sonjay

10+ Year Member



 
Msg#: 3783801 posted 3:03 pm on Dec 14, 2008 (gmt 0)

In the DW Find/Replace box, next to "Search:" select "Specific Tag" and in the next field put font

For "Action:" choose "Strip Tag."

This will remove all font tags (open and close tags) in the page. (Or in the entire site, if you choose that option.) Note that it may miss some if you have any unclosed font tags, or closing font tags without a matching opening tag.)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved