From 4c4de0022f40e09c4db7665cc573a3cb94f753a3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 15 Feb 2020 09:46:38 +0000 Subject: view: escape Subject HTML directly No need to use the over-engineered Hval OO API when the subject is already normalized and there's no trailing spaces because of normalization. --- lib/PublicInbox/View.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 033a0c14..d4bfa62d 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -1090,7 +1090,7 @@ sub dump_topics { my $mid = delete $seen->{$top_subj}; my $href = mid_escape($mid); my $prev_subj = [ split(/ /, $top_subj) ]; - $top_subj = PublicInbox::Hval->new($top_subj)->as_html; + $top_subj = ascii_html($top_subj); $ds = fmt_ts($ds); # $n isn't the total number of posts on the topic, -- cgit v1.2.3-24-ge0c7