Remove Table Rows

This action will remove all rows (<tr>-tags) in the input <table>-tag that do not have a certain number of columns (<td>- and <th>-tags).

Properties

The Remove Table Rows action can be configured using the following properties:

Min. Number of Columns:
Enter the minimum number of columns which should always be in a table row.
Max. Number of Columns:
Enter the maximum number of columns which are allowed in a table row.<

Any rows that do not have a number of columns that lie in the range [Min. Number of Columns; Max. Number of Columns] will be removed.

If all rows in the table end up being removed, the Remove Table Rows action will generate an error.

Example

Consider the input:

<table>
  <tbody>
    <tr><td> 1 </td></tr>
    <tr><td> 2 </td><td> 2 </td></tr>
    <tr><td> 3 </td><td> 3 </td><td> 3 </td></tr>
  </tbody>
</table>

Assume that:

This setting will remove the last row with the three <td>-tags.