Skip to content

Instantly share code, notes, and snippets.

@codedmart
Created November 24, 2015 16:48
Show Gist options
  • Select an option

  • Save codedmart/d319927559caf4966264 to your computer and use it in GitHub Desktop.

Select an option

Save codedmart/d319927559caf4966264 to your computer and use it in GitHub Desktop.
The error is refering to line 4
Unable to parse module:
unexpected "/"
expecting space, "&" or escape code
removeScriptTags :: String -> String
removeScriptTags str = replace regex' "" str
where
replaceStr = "<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>"
regex' = regex replaceStr {global: true, ignoreCase: true, unicode: false, multiline: false, sticky: false}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment