mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-10-21 15:57:09 +00:00
Fix problem with save graph
This commit is contained in:
1 parent
475f4ea88b
commit
5e7d07a9aa
2 files changed
+7
-1
No files matched your search
@@ -1,6 +1,9 @@
|
||||
|
||||
function gEncodeToHTML(str)
|
||||
{
|
||||
if (typeof str !== 'string')
|
||||
return str;
|
||||
|
||||
return str.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
@@ -10,6 +13,9 @@ function gEncodeToHTML(str)
|
||||
|
||||
function gDecodeFromHTML(str)
|
||||
{
|
||||
if (typeof str !== 'string')
|
||||
return str;
|
||||
|
||||
return str.replace(/'/g, "'")
|
||||
.replace(/"/g, '"')
|
||||
.replace(/>/g, '>')
|
||||
|
||||
Reference in new issue
Block a user