src/string.js
// Helper function for very basic XSS protection.
Helper function for very basic XSS protection.
Helper function for very basic XSS protection .
function HtmlEscape(str) {
  return TO_STRING_INLINE(str).replace(/</g, "&lt;")
                              .replace(/>/g, "&gt;")
                              .replace(/"/g, "&quot;")
                              .replace(/'/g, "&#039;");
}
function HtmlEscape ( str ) { return TO_STRING_INLINE ( str ) . replace ( / < / g , "&lt;" ) . replace ( / > / g , "&gt;" ) . replace ( / " / g , "&quot;" ) . replace ( / ' / g , "&#039;" ) ; }
Helper function for very basic XSS protection.
Helper function for very basic XSS protection .