concrete5/concrete5 — pull request #1597 by mlocati (2014-02-10 17:13:22+00:00)
Title: Fix escaping strings for JavaScript

The correct way to pass strings from PHP to JavaScript is json_encode.

Using addslashes or htmlspecialchars(..., ENT_QUOTES) may lead to unexpected issues.