编译之前修改的
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({
|
tinymce.init({
|
||||||
inline: true,
|
inline: true,
|
||||||
theme: 'leanote',
|
// theme: 'leanote',
|
||||||
valid_children: "+pre[div|#text|p|span|textarea|i|b|strong]", // ace
|
valid_children: "+pre[div|#text|p|span|textarea|i|b|strong]", // ace
|
||||||
/*
|
/*
|
||||||
protect: [
|
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注入
|
// 防止js注入
|
||||||
function trimTitle(title) {
|
function trimTitle(title) {
|
||||||
|
if(!title) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
return title.replace(/<.*?script.*?>/g, '');
|
return title.replace(/<.*?script.*?>/g, '');
|
||||||
};
|
};
|
||||||
function toHtmlEntity(html) {
|
function toHtmlEntity(html) {
|
||||||
|
if(!html) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
return (html + '').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
return (html + '').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
||||||
};
|
};
|
@ -117,4 +117,4 @@
|
|||||||
writeScripts();
|
writeScripts();
|
||||||
})(this);
|
})(this);
|
||||||
|
|
||||||
// $hash: 8710c7a2ebafb64ccc0c657880497ecf
|
// $hash: bf4894f5e1ef27695549ef4823f74de3
|
Reference in New Issue
Block a user