Post Reply 
Using $NEST
Jan. 03, 2009, 03:26 AM
Post: #1
Using $NEST
I'm trying to write a filter that removes certain tables.

An example table:
Code:
<table class="maintable">
    <tr>
        <td class="acell">a string</td>
    </tr>
</table>

I can match this table with this code:
Code:
<table*class=$AV(maintable)*>*</table>

The problem with that is that it doesn't work on nested tables:
Code:
<table class="maintable">
  <tr>
    <td class="acell">a string</td>
  </tr>
  <tr>
    <table>
      <tr>
        <td>another table</td>
      </tr>
    </table>
  </tr>
</table>

So I tried this:
Code:
$NEST(<table*class=$AV(maintable)*>,</table>)

This code only removes from the first opening table tag to the first closing table tag, and not the correct closing tag for the main table. Am I using $NEST incorrectly?
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Using $NEST - Quaraxkad - Jan. 03, 2009 03:26 AM
RE: Using $NEST - Kye-U - Jan. 03, 2009, 07:36 AM
RE: Using $NEST - Quaraxkad - Jan. 03, 2009, 08:02 AM
RE: Using $NEST - Kye-U - Jan. 03, 2009, 08:04 AM
RE: Using $NEST - Quaraxkad - Jan. 03, 2009, 08:08 AM
RE: Using $NEST - Quaraxkad - Jan. 03, 2009, 11:11 AM
RE: Using $NEST - sidki3003 - Jan. 03, 2009, 12:46 PM
RE: Using $NEST - lnminente - Jan. 03, 2009, 03:40 PM
RE: Using $NEST - PAEz - Nov. 14, 2009, 06:02 PM
RE: Using $NEST - JJoe - Nov. 14, 2009, 09:32 PM
RE: Using $NEST - PAEz - Nov. 15, 2009, 07:16 AM
RE: Using $NEST - JJoe - Nov. 15, 2009, 03:46 PM

Forum Jump: