diff options
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Alert.pm | 3 | ||||
-rw-r--r-- | templates/web/default/alert/list.html | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Alert.pm b/perllib/FixMyStreet/App/Controller/Alert.pm index 701485676..96498e1ab 100644 --- a/perllib/FixMyStreet/App/Controller/Alert.pm +++ b/perllib/FixMyStreet/App/Controller/Alert.pm @@ -318,11 +318,8 @@ This will canonicalise and prettify the postcode and stick a pretty_pc and prett sub prettify_pc : Private { my ( $self, $c ) = @_; -# FIXME previously this had been run through ent so need to do similar here or in template my $pretty_pc = $c->req->params->{'pc'}; - # my $pretty_pc = $input_h{pc}; - # my $pretty_pc_text;# This one isnt't getting the nbsp. if ( mySociety::PostcodeUtil::is_valid_postcode( $c->req->params->{'pc'} ) ) { $pretty_pc = mySociety::PostcodeUtil::canonicalise_postcode( diff --git a/templates/web/default/alert/list.html b/templates/web/default/alert/list.html index 40b94e9c0..520f66b52 100644 --- a/templates/web/default/alert/list.html +++ b/templates/web/default/alert/list.html @@ -7,7 +7,7 @@ [% END %] -<h1>[% title %]</h1> +<h1>[% title | html %]</h1> <form id="alerts" name="alerts" method="post" action="/alert/subscribe"> <input type="hidden" name="type" value="local"> @@ -24,7 +24,7 @@ <p> [% IF pretty_pc %] - [% tprintf( loc('Here are the types of local problem alerts for %s.'), pretty_pc ) %] + [% tprintf( loc('Here are the types of local problem alerts for %s.'), pretty_pc ) | html %] [% END %] [% loc('Select which type of alert you\'d like and click the button for an RSS feed, or enter your email address to subscribe to an email alert') %] </p> |