Created
November 24, 2015 16:48
-
-
Save codedmart/d319927559caf4966264 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The error is refering to line 4 | |
| Unable to parse module: | |
| unexpected "/" | |
| expecting space, "&" or escape code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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