/** * Encode value to escape newlines */ function vx_encode_nl($str, $nl = "\r\n") { //Convert and escape linebreaks $str = preg_replace("/\r\n|\n\r|\r|\n/", '\\n', $str); if ($this->_check_folding()) { // "Fold" data if necessary/allowed to do so org_openpsa_helpers_vxparser::_vx_encode_fold($str, $nl); } return $str; }