code: function(text) {
          return text.replace(/"([^"]|"")*"/g, function(value) {
              return value.replace(LF, CUSTOM_LF_SUBCHAR)
                  .replace(CR, CUSTOM_CR_SUBCHAR);
          });
      }
docs: Replace newline characters to substitution characters
  @param {string} text - Original text
  @returns {string} Replaced text