summaryrefslogtreecommitdiff
path: root/horizon/templatetags/angular.py
diff options
context:
space:
mode:
Diffstat (limited to 'horizon/templatetags/angular.py')
-rw-r--r--horizon/templatetags/angular.py3
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)