Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: substr(ingifying) htmlized text

by sk (Curate)
on Sep 23, 2005 at 19:24 UTC ( [id://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 -

<HTML> <HEAD> </BODY> </HEAD> </HTML>
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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://494645]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-03-29 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found