Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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 -

<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


Comment on Re: substr(ingifying) htmlized text
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2014-09-18 12:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (113 votes), past polls