For example:
local StringToAction = "TESTING <script></script>" -- Using httpservice as an example
- I would like to remove the <script> and </script> tags whilst also removing their inner content.
Using this:
local StringToAction = "Testing <script></script>" local start, temp1 = StringToAction:find("<script>") local temp2, endS = StringToAction:find("</script>", temp1) local CleansedString = StringToAction:sub(1, start - 1) .. "" .. StringToAction:sub(endS + 1, StringToAction:len())