I'm trying to add a second parameter to a lua function using gsub, but I can't figure it out. Here's the function:
function ScrubHTML(htmlString)
return string.gsub(htmlString, "<.->", "");
end
As of right now it's only set up to sub out the <, ., -, and > characters, but I need to add something for any non-breaking spaces, "%nbsp;", as well.
I'm sure it's obvious from the post, but I am not a developer/am VERY inexperienced. I'm just playing around with some code on a test machine I have and have been stumped by this. I have tried combining some regex patterns in the find string, but it doesn't appear to work.
Any help would be greatly appreciated.