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