Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: substr(ingifying) htmlized text

by sk (Curate)
on Sep 23, 2005 at 19:24 UTC ( #494645=note: print w/replies, xml ) Need Help??

in reply to substr(ingifying) htmlized text

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://494645]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2018-04-24 03:41 GMT
Find Nodes?
    Voting Booth?