diff options
author | Paulo Matias <matias@ufscar.br> | 2016-08-27 18:24:55 -0300 |
---|---|---|
committer | Paulo Matias <matias@ufscar.br> | 2016-08-28 10:17:17 -0300 |
commit | d580adb4dd9337ca4e3b6eaeaefffdf3f215ac19 (patch) | |
tree | 6a723531a88a8a258b4243d54f2c5d321865c19f /horizon/templatetags | |
parent | 96595dcfc2aea9b6b22a23da7a53867d6a60aef1 (diff) | |
download | horizon-d580adb4dd9337ca4e3b6eaeaefffdf3f215ac19.tar.gz |
Escape blackslash in the angular_escapes filter
Co-Authored-By: Tadeu Sampaio <tadeu@ufscar.br>
Closes-Bug: #1617749
Change-Id: Ic97c6f3b0e3c4c91323dcba82bfe43e252e16b1a
Diffstat (limited to 'horizon/templatetags')
-rw-r--r-- | horizon/templatetags/angular.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/horizon/templatetags/angular.py b/horizon/templatetags/angular.py index 8f37b565c..345f4b89b 100644 --- a/horizon/templatetags/angular.py +++ b/horizon/templatetags/angular.py @@ -69,7 +69,8 @@ def angular_escapes(value): .replace('"', '\\"') \ .replace("'", "\\'") \ .replace("\n", "\\n") \ - .replace("\r", "\\r") + .replace("\r", "\\r") \ + .replace("\\", "\\\\") @register.inclusion_tag('angular/angular_templates.html', takes_context=True) |