reversing html
- From: yahalom <yahalome@xxxxxxxxx>
- Date: Fri, 28 Sep 2007 10:54:18 -0700
I need to reverese html in order for it to be shown correctly with
html to pdf converter. the converter does not support the style
direction:rtl (I need to show hebrew) so I need to do it manually.
most of the swaping is re-ordering the td tags. for example from
<html>
<body>
<table>
<tr>
<td>1</td>
<td>2</td>
<td>
<table>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
</tr>
</table>
</body>
</html>
I need to get
<html>
<body>
<table>
<tr>
<td>
<table>
<tr>
<td>4</td>
<td>3</td>
</tr>
</table>
</td>
<td>2</td>
<td>1</td>
</tr>
</table>
</body>
</html>
what is the best way to do it? I tried htmlparse and the tree
structure with struct::tree but with no success. is there a nice and
simple solution?
.
- Follow-Ups:
- Re: reversing html
- From: Aric Bills
- Re: reversing html
- Prev by Date: Re: ANNOUNCE: eTcl 1.0-rc23 (based on 8.4.16)
- Next by Date: Re: Simple parser for C/C++
- Previous by thread: Syntax
- Next by thread: Re: reversing html
- Index(es):
Relevant Pages
|