What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [RESOLVED] JavaScript: Remove <table>blah</table>

[RESOLVED] JavaScript: Remove <table>blah</table>
Author: Message:
macgyver08
Junior Member
**

Avatar
Hakuna matata!

Posts: 23
34 / Male / Flag
Joined: Feb 2007
O.P. RE: RE: JavaScript: Remove <table>blah</table>
quote:
Originally posted by Spunky
Javascript code:
// IGNORE -> html = html.replace(/\<table\>.+?\<\/table\>/gi, "");
html = html.replace(/\<table.+?table\>/gi, "");


Should do it.

EDIT:
Changed it to allow for attributes in the table tag such as styles, class, id etc.
Doesn't appear to be working *-)

EDIT: I didn't see your edit before i said it didn't work. Let me try your new one.

This post was edited on 01-29-2010 at 09:59 PM by macgyver08.
01-29-2010 09:59 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[RESOLVED] JavaScript: Remove <table>blah</table> - by macgyver08 on 01-29-2010 at 09:32 PM
RE: JavaScript: Remove <table>blah</table> - by matty on 01-29-2010 at 09:37 PM
RE: RE: JavaScript: Remove <table>blah</table> - by macgyver08 on 01-29-2010 at 09:39 PM
RE: JavaScript: Remove <table>blah</table> - by Spunky on 01-29-2010 at 09:45 PM
RE: RE: JavaScript: Remove <table>blah</table> - by macgyver08 on 01-29-2010 at 09:59 PM
RE: JavaScript: Remove <table>blah</table> - by macgyver08 on 01-29-2010 at 10:03 PM
RE: JavaScript: Remove <table>blah</table> - by Spunky on 01-29-2010 at 10:13 PM
RE: JavaScript: Remove <table>blah</table> - by macgyver08 on 01-29-2010 at 10:18 PM
RE: JavaScript: Remove <table>blah</table> - by Spunky on 01-29-2010 at 10:29 PM
RE: JavaScript: Remove <table>blah</table> - by Spunky on 01-29-2010 at 10:40 PM
RE: JavaScript: Remove <table>blah</table> - by macgyver08 on 01-29-2010 at 11:12 PM
RE: JavaScript: Remove <table>blah</table> - by Spunky on 01-29-2010 at 11:48 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On