[json-lib-user] Unable to treat "function(){}" as string
Brought to you by:
aalmiray
From: Pedro A. <pe...@ne...> - 2009-06-30 18:27:32
|
Hello. I have a webapp that has textareas where the users can input anything, including javascript code. The problem is that I can't make jslib treat stuff like "function(){}" as a string. Is there any specific rule to encapsulate it? Whatever I do it either returns "\"function(){}\"" or a JSONFunction, I can never get a string with the chart "function()" Thanks -- Pedro Alves pmgalves-at-gmail.com |