Hi I have an assignment which is supposed to check given a string if it can become a valid html file. like for example running this:
doc2 = “<head> Test2 <body> Testing </body>"
should output this:
λ parse hmtl doc2
(False, “<head> Test2 <body> Testing </body>”)
the trouble I am having is creating a parser for the tags. I know that there is a package, but we are not allowed to use it. Any ideas on how to do this?