mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Dev: Improve line break display
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
/* Escape json string.
|
||||
*/
|
||||
|
||||
_('escapeJsStr');
|
||||
|
||||
function exports(str)
|
||||
{
|
||||
return str.replace(/\\/g, '\\\\')
|
||||
.replace(/"/g, '\\"')
|
||||
.replace(/\f|\n|\r|\t/g, '');
|
||||
return escapeJsStr(str).replace(/\\'/g, '\'');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user