编译之前修改的
This commit is contained in:
File diff suppressed because one or more lines are too long
2
public/js/app/page-min.js
vendored
2
public/js/app/page-min.js
vendored
File diff suppressed because one or more lines are too long
@ -465,7 +465,7 @@ function initEditor() {
|
||||
// 初始化编辑器
|
||||
tinymce.init({
|
||||
inline: true,
|
||||
theme: 'leanote',
|
||||
// theme: 'leanote',
|
||||
valid_children: "+pre[div|#text|p|span|textarea|i|b|strong]", // ace
|
||||
/*
|
||||
protect: [
|
||||
|
2
public/js/common-min.js
vendored
2
public/js/common-min.js
vendored
File diff suppressed because one or more lines are too long
@ -1280,8 +1280,14 @@ function setHash(key, value) {
|
||||
|
||||
// 防止js注入
|
||||
function trimTitle(title) {
|
||||
if(!title) {
|
||||
return '';
|
||||
}
|
||||
return title.replace(/<.*?script.*?>/g, '');
|
||||
};
|
||||
function toHtmlEntity(html) {
|
||||
if(!html) {
|
||||
return '';
|
||||
}
|
||||
return (html + '').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
||||
};
|
@ -117,4 +117,4 @@
|
||||
writeScripts();
|
||||
})(this);
|
||||
|
||||
// $hash: 8710c7a2ebafb64ccc0c657880497ecf
|
||||
// $hash: bf4894f5e1ef27695549ef4823f74de3
|
Reference in New Issue
Block a user