Homec4science

jsonutils: new wash_for_js() to escape strings

Authored by Lars Holm Nielsen <lars.holm.nielsen@cern.ch> on May 11 2012, 16:37.

Description

jsonutils: new wash_for_js() to escape strings

  • New method wash_for_js() to properly escape strings for use in JavaScript to ensure that e.g. line breaks will not cause syntax errors.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Jun 15 2012, 16:36
Parents
R3600:72c9a74a2be5: InvenioConnector: fixes mechanize compatibility
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:13c9b4017559: jsonutils: new wash_for_js() to escape strings (authored by Lars Holm Nielsen <lars.holm.nielsen@cern.ch>).Jun 15 2012, 16:36