function socialcalc_encode_value in Sheetnode 7
Same name and namespace in other branches
- 5 socialcalc.inc \socialcalc_encode_value()
- 6 socialcalc.inc \socialcalc_encode_value()
- 7.2 socialcalc.inc \socialcalc_encode_value()
2 calls to socialcalc_encode_value()
File
- ./
socialcalc.inc, line 664 - SocialCalc manipulation functions Translated from socialcalc-3.js and companion files
Code
function socialcalc_encode_value($s) {
if (!is_string($s)) {
return $s;
}
return str_replace(array(
'\\',
':',
"\r\n",
"\n",
), array(
'\\b',
'\\c',
'\\n',
'\\n',
), $s);
}