Closed GoogleCodeExporter closed 9 years ago
If you want to replace all the <div>s with <p>s, it's easy.
Find: <div([^>]*)>(.*)</div>
Replace: <p\1>\2</p>
... using regex and minimal matching checked. This is how you're supposed to do
it, and Tidy doesn't say a word.
As for other problems with Tidy, most are problems with your code not being
well-formed XML and Sigil borking on this. Your code NEEDS to be WF XML for a
multitude of reasons.
Tidy is usually a good watchdog; it forces you to not do silly things that
wouldn't work anyway. When it causes grief, it's mostly because your way of
achieving something could be improved (like this regex example).
With regard to <audio>, <video> etc tags, Tidy will be modified to support them
in the future.
In general, Tidy *internals* are shit (the code in the library), but it's
functionality is usually not.
Original comment by Strahinja.Markovic@gmail.com
on 13 Jun 2011 at 2:19
Original issue reported on code.google.com by
dkstock...@gmail.com
on 9 Jun 2011 at 2:18