url_title gsub '

This commit is contained in:
Akamaru 2015-06-12 15:38:19 +02:00
parent 08dd054a1e
commit 16286b9dae

View File

@ -12,6 +12,7 @@ function getTitle(page)
s = string.gsub(s, "&lt;", "<")
s = string.gsub(s, "&gt;", ">")
s = string.gsub(s, "&amp;", "&")
s = string.gsub(s, "&#39;", "'")
-- Put all the tags in lowercase.
s = string.gsub(s, "(<[^ >]+)", string.lower)