need a way to escape javascript strings / escapeJSString

Bug #629484 reported by edA-qa
6
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

edA-qa (eda-qa)
Changed in testplan:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Stephane Mikaty (eCircle AG) (s-mikaty) wrote :

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.

Revision history for this message
edA-qa (eda-qa) wrote :
Changed in testplan:
assignee: nobody → edA-qa (eda-qa)
milestone: none → testplan-1-0-r6
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.