hive/html/js/basic.js
// escape quotes and escapes, for using a string literal inside a piece of javascript code
escape quotes and escapes, for using a string literal inside a piece of javascript code
escape quotes and escapes for using a string literal inside a piece of javascript code
function sanitizeStringJS(s)
{
    s = "" + s;
    s = s.replace(/\\/g, "\\\\");
    s = s.replace(/'/g, "\\'");
    s = s.replace(/"/g, "\\\"");
    return s;
}
function sanitizeStringJS ( s ) { s = "" + s ; s = s . replace ( / \\ / g , "\\\\" ) ; s = s . replace ( / ' / g , "\\'" ) ; s = s . replace ( / " / g , "\\\"" ) ; return s ; }
escape quotes and escapes, for using a string literal inside a piece of javascript code
escape quotes and escapes for using a string literal inside a piece of javascript code