sl-types.js
function stripQuotes(text) {
  var sansquotes = text;
  if(isQuotedString(text)) {
    if(text.length === 2) {
        sanquotes = ""; // empty string
    }
    else {
      sansquotes = text.substring(1, text.length-1);
// DELETE?      sansquotes = unescapeQuotes(sansquotes);
    }
  }
  return sansquotes;
}
function stripQuotes(text) {
  var sansquotes = text;
  if(isQuotedString(text)) {
    if(text.length === 2) {
        sanquotes = ""; // empty string
    }
    else {
      sansquotes = text.substring(1, text.length-1);
// DELETE?      sansquotes = unescapeQuotes(sansquotes);
    }
  }
  return sansquotes;
}
function stripQuotes ( text ) { var sansquotes = text ; if ( isQuotedString ( text ) ) { if ( text . length === 2 ) { sanquotes = "" ; // empty string } else { sansquotes = text . substring ( 1 , text . length - 1 ) ; // DELETE?      sansquotes = unescapeQuotes(sansquotes); } } return sansquotes ; }
strip the quotes from around a string if there are any
otherwise return the string as given.
since we are removing the quotes we also unescape quotes
within the string.
strip the quotes from around a string if there are any otherwise return the string as given . since we are removing the quotes we also unescape quotes within the string .