jslint reports message Insecure ‘.’.
at line
html = /<body.*?>([\s\S]*)<\/body>/.exec(responseText);
How to fix this ?
Update
After body and before closing bracket there may be attributes so \s? cannot used. Javascript is running in browser, jQuery is used.
Which is best way to extract body element content from string instead of this?
You may try something like this if you really want it to match everything and don’t want the jslint error.
basically it says any word character and any non-word character… which pretty much covers everything.