mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-02-16 02:30:51 +00:00
Fix problem with save graph
This commit is contained in:
@@ -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