about summary refs log tree commit homepage
path: root/lib/PublicInbox/Linkify.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-01-25 04:45:04 +0000
committerEric Wong <e@yhbt.net>2020-01-27 02:59:09 +0000
commit02cdbe1c1638ba8e80351b39029c08343fab018b (patch)
treecf1f05b6a0b8077fd701d8ac40d9fa6e7eb81d48 /lib/PublicInbox/Linkify.pm
parentf09b01e0e89dbdf0f0bd6bfae2f8545fa17657d2 (diff)
downloadpublic-inbox-02cdbe1c1638ba8e80351b39029c08343fab018b.tar.gz
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.
Diffstat (limited to 'lib/PublicInbox/Linkify.pm')
-rw-r--r--lib/PublicInbox/Linkify.pm2
1 files changed, 2 insertions, 0 deletions
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;