src/embed.js
function inline(text) {
  var result = '';
  for (var i = 0; i < text.length; i += 1) {
    var value = text.charAt(i);
    if (value === '\'') result += '\\\'';
    else if (value === '\\') result += '\\\\';
    else if (value === '\b') result += '\\b';
    else if (value === '\f') result += '\\f';
    else if (value === '\n') result += '\\n';
    else if (value === '\r') result += '\\r';
    else if (value === '\t') result += '\\t';
    else result += value;
  }
  return result;
}
function inline(text) {
  var result = '';
  for (var i = 0; i < text.length; i += 1) {
    var value = text.charAt(i);
    if (value === '\'') result += '\\\'';
    else if (value === '\\') result += '\\\\';
    else if (value === '\b') result += '\\b';
    else if (value === '\f') result += '\\f';
    else if (value === '\n') result += '\\n';
    else if (value === '\r') result += '\\r';
    else if (value === '\t') result += '\\t';
    else result += value;
  }
  return result;
}
function inline ( text ) { var result = '' ; for ( var i = 0 ; i < text . length ; i += 1 ) { var value = text . charAt ( i ) ; if ( value === '\'' ) result += '\\\'' ; else if ( value === '\\' ) result += '\\\\' ; else if ( value === '\b' ) result += '\\b' ; else if ( value === '\f' ) result += '\\f' ; else if ( value === '\n' ) result += '\\n' ; else if ( value === '\r' ) result += '\\r' ; else if ( value === '\t' ) result += '\\t' ; else result += value ; } return result ; }
Escapes for inline embedding.
@param {string} text
@returns {string}
Escapes for inline embedding .