Remove <scripts>

- Closes #192
main
Mike Fix 7 years ago
parent a3697f48b9
commit 5b894546e0

@ -32,7 +32,7 @@ import { getState, saveState } from '../lib/util'
const removeQueryString = str => {
const qI = str.indexOf('?')
return qI >= 0 ? str.substr(0, qI) : str
return (qI >= 0 ? str.substr(0, qI) : str).replace(/<script(?:.|\s)*>(?:.|\s)*<\/script>/g, '')
}
class Editor extends React.Component {

Loading…
Cancel
Save