The following line causes a "unterminat ed string literal" error when the string from a LONGTXT field contains a hard return (paragraph marker, whatever).
[CODE=javascript]eval("var result = " + string)[/CODE]
How can I escape and still preserve the hard return?
[CODE=javascript]eval("var result = " + string)[/CODE]
How can I escape and still preserve the hard return?
Comment