diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-18 23:40:46 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-18 23:40:46 +0000 |
commit | aabaeb6a497a1821c043afc81e09395580931f30 (patch) | |
tree | 63996ff5894e54b6f0b0c46dcc1f1c5f88e7a7c7 /lib/rbot | |
parent | 93876c8804eb04a1ee7a43943d6a07c34ff6f0fc (diff) |
ircify_html: minimal support for li tags
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/core/utils/extends.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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>(.*?)<\/sub>/, '_{\1}') txt.gsub!(/(^|_)\{(.)\}/, '\1\2') + # List items are converted to *). We don't have special support for + # nested or ordered lists. + txt.gsub!(/<li>/, ' *) ') + # All other tags are just removed txt.gsub!(/<[^>]+>/, '') |