From: Giuseppe Bilotta Date: Tue, 18 Sep 2007 23:40:46 +0000 (+0000) Subject: ircify_html: minimal support for li tags X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=aabaeb6a497a1821c043afc81e09395580931f30;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git ircify_html: minimal support for li tags --- diff --git a/lib/rbot/core/utils/extends.rb b/lib/rbot/core/utils/extends.rb index 4e5459d8..7b733994 100644 --- a/lib/rbot/core/utils/extends.rb +++ b/lib/rbot/core/utils/extends.rb @@ -137,6 +137,10 @@ class ::String txt.gsub!(/(.*?)<\/sub>/, '_{\1}') txt.gsub!(/(^|_)\{(.)\}/, '\1\2') + # List items are converted to *). We don't have special support for + # nested or ordered lists. + txt.gsub!(/
  • /, ' *) ') + # All other tags are just removed txt.gsub!(/<[^>]+>/, '')