mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-66542 lib: Fix quote escaping in JS quote helper
This commit is contained in:
parent
9528b1ff5b
commit
f8f04b773d
2
lib/amd/build/templates.min.js
vendored
2
lib/amd/build/templates.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -492,7 +492,7 @@ define([
|
||||
// Escape the {{ and the ".
|
||||
// This involves wrapping {{, and }} in change delimeter tags.
|
||||
content = content
|
||||
.replace('"', '\\"')
|
||||
.replace(/"/g, '\\"')
|
||||
.replace(/([\{\}]{2,3})/g, '{{=<% %>=}}$1<%={{ }}=%>')
|
||||
.replace(/(\r\n|\r|\n)/g, '
')
|
||||
;
|
||||
|
Loading…
x
Reference in New Issue
Block a user