gsub gsub gsub

This commit is contained in:
Akamaru 2015-06-11 17:10:03 +02:00
parent 87ea7b5771
commit 782020e61f

View File

@ -9,6 +9,9 @@ function getTitle(page)
s = string.gsub(s, " *> *", ">")
s = string.gsub(s, "|", "|")
s = string.gsub(s, "‹", "")
s = string.gsub(s, "&lt;", "<")
s = string.gsub(s, "&gt;", ">")
s = string.gsub(s, "&amp;", "&")
-- Put all the tags in lowercase.
s = string.gsub(s, "(<[^ >]+)", string.lower)