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