mirror of
https://gitee.com/openharmony/applications_notes
synced 2024-12-11 17:45:16 +00:00
Symbol Escape
Signed-off-by: zhanghongchuan33 <zhanghongchuan6@huawei.com>
This commit is contained in:
parent
43e358967f
commit
dfb088cf70
@ -18,8 +18,7 @@ var RICH_EDITOR = {};
|
||||
RICH_EDITOR.editor = document.getElementById('editorjs');
|
||||
|
||||
RICH_EDITOR.setHtml = function(contents) {
|
||||
RICH_EDITOR.editor.innerHTML = contents.replace(/%20/g, '+');
|
||||
RICH_EDITOR.editor.innerHTML = contents.replace(/\'/g, "'");
|
||||
RICH_EDITOR.editor.innerHTML = contents.replace(/'/g, "'");
|
||||
}
|
||||
|
||||
RICH_EDITOR.getHtml = function() {
|
||||
@ -323,8 +322,7 @@ RICH_EDITOR.getSelectedAnchorNode=function(){
|
||||
function get_html_content() {
|
||||
console.log('get_html_content');
|
||||
var htmlString = RICH_EDITOR.getHtml()
|
||||
htmlString = htmlString.replace(/\+/g, '%20')
|
||||
htmlString = htmlString.replace(/\'/g, '\'')
|
||||
htmlString = htmlString.replace(/'/g, ''')
|
||||
var str = callBackToApp.callbackhtml(htmlString)
|
||||
console.log('get_html_content end');
|
||||
}
|
||||
@ -332,8 +330,7 @@ function get_html_content() {
|
||||
function save_html_content() {
|
||||
console.log('save_html_content');
|
||||
var htmlString = RICH_EDITOR.getHtml()
|
||||
htmlString = htmlString.replace(/\+/g, '%20')
|
||||
htmlString = htmlString.replace(/\'/g, '\'')
|
||||
htmlString = htmlString.replace(/'/g, ''')
|
||||
var str = callBackToApp.callbackhtmlSave(htmlString)
|
||||
console.log('save_html_content end');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user