Welcome to the Monastery | |
PerlMonks |
Re: substr(ingifying) htmlized textby sk (Curate) |
on Sep 23, 2005 at 19:24 UTC ( [id://494645]=note: print w/replies, xml ) | Need Help?? |
Is it reasonable to assume your question is more to do with - can we fix a HTML file that is not well-formed? I am not sure if that is possible. Too many things to worry about. take this for example -
Now </BODY> will close <HEAD>. Well you scan backwards and forwards and pick the one which gives the valid HTML but i can surely come up with two errors that will make the program think it is a valid HTML. Unless you are going to check with Keywords it is going to hard to do this. Even if you check with keywords when someone misses the tag where will you put them? Sorry not much of help on the code front but just listing out issues. -SK
In Section
Seekers of Perl Wisdom
|
|