From 02cdbe1c1638ba8e80351b39029c08343fab018b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 25 Jan 2020 04:45:04 +0000 Subject: linkify: move to_html over from ViewDiff We use the same idiom in many places for doing two-step linkification and HTML escaping. Get rid of an outdated comment in flush_quote while we're at it. --- lib/PublicInbox/Linkify.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/PublicInbox/Linkify.pm') diff --git a/lib/PublicInbox/Linkify.pm b/lib/PublicInbox/Linkify.pm index 77b94f56..199457af 100644 --- a/lib/PublicInbox/Linkify.pm +++ b/lib/PublicInbox/Linkify.pm @@ -120,4 +120,6 @@ sub linkify_mids { !ge; } +sub to_html { linkify_2($_[0], ascii_html(linkify_1(@_))) } + 1; -- cgit v1.2.3-24-ge0c7