Hi folks,
I’m looking for a really good string cleaner for fairly dirty HTML cleaning. Currently, the best results I’ve got are by using this code:
local o = "" string.gsub("\>"..htmlContent.."\<","\>(.-)\<", function(a) o=o..a end ) local p = "" string.gsub(";"..o.."&",";(.-)&", function(a) p=p..a end ) print(p)
…which obviously isn’t beautiful. What I need is something really robust which can also convert HTML characters (and the weird ones like �) into normal, plain text.
Does anyone have anything like that, please?
Thanks,
Matt.