I am interested in parsing a HTML file using Haskell to search for the strings in the tags, for example, I want to get the string between <body>
...</body>
. I tried
getValue :: String -> [String]
getValue [] = []
getValue '<':x:'>':y:'<':'/':x:'>':z = y:[]:getValue z
It will enumerate all the cases if at all. But I am interested in the largest ones which are not subsets of any other output element. How do I do that?