function softReplace(contentBlock, nativeString, localizedString) {
  var escapedString = ignoreExtraSpaces(
    ignoreEmptyAttrs(
      utils.escapeRegExpSpecialChars(
        nativeString
      )
    )
  );
  var regex = new RegExp('([>"\']\\s*)(' + escapedString + ')(\\s*[<"\'])', 'g');
  return contentBlock.replace(regex, '$1' + localizedString + '$3');
}
function softReplace(contentBlock, nativeString, localizedString) {
  var escapedString = ignoreExtraSpaces(
    ignoreEmptyAttrs(
      utils.escapeRegExpSpecialChars(
        nativeString
      )
    )
  );
  var regex = new RegExp('([>"\']\\s*)(' + escapedString + ')(\\s*[<"\'])', 'g');
  return contentBlock.replace(regex, '$1' + localizedString + '$3');
}
function softReplace ( contentBlock , nativeString , localizedString ) { var escapedString = ignoreExtraSpaces ( ignoreEmptyAttrs ( utils . escapeRegExpSpecialChars ( nativeString ) ) ) ; var regex = new RegExp ( '([>"\']\\s*)(' + escapedString + ')(\\s*[<"\'])' , 'g' ) ; return contentBlock . replace ( regex , '$1' + localizedString + '$3' ) ; }
avoids unintentional localization of unrelated strings
avoids unintentional localization of unrelated strings