diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-12-16 11:58:33 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-12-16 11:59:18 +0000 |
commit | a5211a3844a97b33bede8a8960a2f8fee2c3925f (patch) | |
tree | 98caf11cf56d2f8729f9d6683df05f7d34c59224 | |
parent | 8de13fb4e6c26a31e43fff41a69c930c95096c92 (diff) |
Mark location_error as safe.
-rw-r--r-- | templates/web/base/alert/_index_text.html | 2 | ||||
-rw-r--r-- | templates/web/base/around/location_error.html | 2 | ||||
-rw-r--r-- | templates/web/cheshireeast/alert/_index_text.html | 2 | ||||
-rw-r--r-- | templates/web/peterborough/alert/_index_text.html | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/templates/web/base/alert/_index_text.html b/templates/web/base/alert/_index_text.html index 92e84478e..80ed142d1 100644 --- a/templates/web/base/alert/_index_text.html +++ b/templates/web/base/alert/_index_text.html @@ -11,7 +11,7 @@ within a certain distance of a particular location.', "%s is the site name"), si </p> [% IF location_error %] - <div class="error">[% location_error %]</div> + <div class="error">[% location_error | safe %]</div> [% ELSE %] [% INCLUDE 'errors.html' %] [% END %] diff --git a/templates/web/base/around/location_error.html b/templates/web/base/around/location_error.html index fc9b2b8ce..8e1a75008 100644 --- a/templates/web/base/around/location_error.html +++ b/templates/web/base/around/location_error.html @@ -1 +1 @@ -<p class="form-error">[% location_error %]</p> +<p class="form-error">[% location_error | safe %]</p> diff --git a/templates/web/cheshireeast/alert/_index_text.html b/templates/web/cheshireeast/alert/_index_text.html index c2eedf7bb..321a0b85c 100644 --- a/templates/web/cheshireeast/alert/_index_text.html +++ b/templates/web/cheshireeast/alert/_index_text.html @@ -5,7 +5,7 @@ problems within a certain distance of a particular location. </p> [% IF location_error %] - <div class="error">[% location_error %]</div> + <div class="error">[% location_error | safe %]</div> [% ELSE %] [% INCLUDE 'errors.html' %] [% END %] diff --git a/templates/web/peterborough/alert/_index_text.html b/templates/web/peterborough/alert/_index_text.html index 281c662b1..1c7f025c5 100644 --- a/templates/web/peterborough/alert/_index_text.html +++ b/templates/web/peterborough/alert/_index_text.html @@ -5,7 +5,7 @@ problems within a certain distance of a particular location. </p> [% IF location_error %] - <div class="error">[% location_error %]</div> + <div class="error">[% location_error | safe %]</div> [% ELSE %] [% INCLUDE 'errors.html' %] [% END %] |