need a way to escape javascript strings / escapeJSString
Bug #629484 reported by
edA-qa
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TestPlan |
Fix Committed
|
Wishlist
|
edA-qa |
Bug Description
For use with evalJavascript it would be helpful to have a function that escapes JavaScript strings correctly.
Related branches
Changed in testplan: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
To post a comment you must log in.
The function that seems to do this is
StringUtil. jsStringValue( value )
We need this fixed! We have no workaround at the moment when calling this:
set %res% as evalJavaScript cmeditor. setCode( '%Cmds: BodyHTML% ');1;
Cmds:BodyHTML has to be escaped for it to work.