hive/html/js/basic.js
// replace quotes with xml entities, for using a string as html attribute value etc. when assembling html by string concatenation
replace quotes with xml entities, for using a string as html attribute value etc. when assembling html by string concatenation
replace quotes with xml entities for using a string as html attribute value etc . when assembling html by string concatenation
function sanitizeElementAttr(s)
{
    s = "" + s;
    s = s.replace(/&/g, "&amp;");
    s = s.replace(/'/g, "&#x27;");
    s = s.replace(/"/g, "&#x22;");
    return s;
}
function sanitizeElementAttr ( s ) { s = "" + s ; s = s . replace ( / & / g , "&amp;" ) ; s = s . replace ( / ' / g , "&#x27;" ) ; s = s . replace ( / " / g , "&#x22;" ) ; return s ; }
replace quotes with xml entities, for using a string as html attribute value etc.
replace quotes with xml entities for using a string as html attribute value etc .