gsub |

This commit is contained in:
Akamaru 2015-06-09 16:21:07 +02:00
parent 7c8b46680d
commit 862885fa90
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ function getTitle(page)
s = string.gsub(s, "\n", " ")
s = string.gsub(s, " *< *", "<")
s = string.gsub(s, " *> *", ">")
s = string.gsub(s, "&#124;", "|")
-- Put all the tags in lowercase.
s = string.gsub(s, "(<[^ >]+)", string.lower)