index.js
function (text) {
			if (typeof text === 'undefined') {
				// Unescape characters
				if (node.C) {
					return node.C.replace(/\\([\\:\]])/g, '$1');
				} else {
					return '';
				}
			} else {
				// Escape characters
				node.C = text.replace(/[\\:\]]/g, '\\$&');
			}
		}
function (text) {
			if (typeof text === 'undefined') {
				// Unescape characters
				if (node.C) {
					return node.C.replace(/\\([\\:\]])/g, '$1');
				} else {
					return '';
				}
			} else {
				// Escape characters
				node.C = text.replace(/[\\:\]]/g, '\\$&');
			}
		}
function ( text ) { if ( typeof text === 'undefined' ) { // Unescape characters if ( node . C ) { return node . C . replace ( / \\([\\:\]]) / g , '$1' ) ; } else { return '' ; } } else { // Escape characters node . C = text . replace ( / [\\:\]] / g , '\\$&' ) ; } }
Get or set a comment on the current node @see http://www.red-bean.com/sgf/sgf4.html#text
Get or set a comment on the current node