webmcp
diff framework/env/ui/script.lua @ 10:e017c47d43b5
Modified encode.json to avoid special CDATA sequences in output
author | jbe |
---|---|
date | Wed Feb 03 00:57:18 2010 +0100 (2010-02-03) |
parents | 64f4540ce88c |
children | d76a8857ba62 |
line diff
1.1 --- a/framework/env/ui/script.lua Sun Jan 31 18:37:38 2010 +0100 1.2 +++ b/framework/env/ui/script.lua Wed Feb 03 00:57:18 2010 +0100 1.3 @@ -9,6 +9,8 @@ 1.4 1.5 This function is used to insert a script into the active slot. 1.6 1.7 +WARNING: The given script MUST NOT include two closing square brackets directly followed by a greater-than sign, unless the output is interpreted strictly as XHTML. For string literals this is ensured automatically, if being encoded with encode.json{...}. 1.8 + 1.9 --]]-- 1.10 1.11 function ui.script(args)