Tomu Breidah |
No Problems, Only Solutions
|
|
|
Reged: 08/14/04
|
Posts: 6820
|
Loc: Neither here, nor there.
|
|
Send PM
|
|
|
Easy way to remove 'table, tr, td' from html
#258659 - 06/29/11 06:36 AM
|
|
|
The dumbest question is the one you don't ask. Right?
I'm needing to clean up some html code that has {table} {tr} {td} {/table} {/tr} {/td} in it. It's for a LOT of pages of a site that I've volunteered to help with. I'm copying the pages from the internet archive, then pasting them in WordPress in the 'visual' editor.
Would the only way to get rid of the table formatting (and that other stuff) be to sift through all of it manually, highlight and delete?
Or would it be possible to write a script that does all that?
Please pardon my naivety in this matter.
{ } I know, ;gt ;lt or whatever. You get the idea.
|
LEVEL-4
|
|
Mr. Do |
MAME Art Editor
|
|
|
Reged: 09/21/03
|
Posts: 4876
|
Loc: California
|
|
Send PM
|
|
|
Search and Replace
[Re: Tomu Breidah]
#258660 - 06/29/11 06:41 AM
|
|
|
> The dumbest question is the one you don't ask. Right? > > > I'm needing to clean up some html code that has {table} {tr} {td} {/table} {/tr} > {/td} in it. It's for a LOT of pages of a site that I've volunteered to help with. > I'm copying the pages from the internet archive, then pasting them in WordPress in > the 'visual' editor. > > > Would the only way to get rid of the table formatting (and that other stuff) be to > sift through all of it manually, highlight and delete? > > Or would it be possible to write a script that does all that? > > > Please pardon my naivety in this matter. > > { } I know, ;gt ;lt or whatever. You get the idea.
http://www.funduc.com/search_replace.htm
e.g. In search box: <table> Leave replace box blank
File mask: *.html
It will delete any instance of "<table>" in all html files. Then repeat for each tag you want to delete.
|
RELAX and just have fun. Remember, it's all about the games.
|
|
|
Re: Easy way to remove 'table, tr, td' from html
[Re: Tomu Breidah]
#258661 - 06/29/11 06:48 AM
|
|
|
Sounds like someone is violating some copyright laws.
Isn't there an "html view" in the wordpress editor?
The editor on my Joomla site has that feature. You just toggle over to HTML view, then paste your marked up text.
The other options I can think of...
1) View the HTML in a browser and select the text and copy it. Then paste it into notepad to make sure all the formatting is gone. Then copy it from notepad and paste it into your wordpress editor.
...OR...
2) Search and replace the markup away. Use a text editor on the HTML marked up source to search and replace each tag or HTML snippet with nothing or maybe a "space".
|
GroovyMAME support forum on BYOAC
|
|