aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/View/Web.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App/View/Web.pm')
-rw-r--r--perllib/FixMyStreet/App/View/Web.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/View/Web.pm b/perllib/FixMyStreet/App/View/Web.pm
index febeaf3c1..2f3ec8914 100644
--- a/perllib/FixMyStreet/App/View/Web.pm
+++ b/perllib/FixMyStreet/App/View/Web.pm
@@ -122,6 +122,7 @@ sub add_links {
$text =~ s/\r//g;
$text = ent($text);
$text =~ s{(https?://[^\s]+)}{<a href="$1">$1</a>}g;
+ $text =~ s{">(.*?)<}{">$1<}ge;
return $text;
}