diff --git a/engines/LuaCommon/lualib/mw.html.lua b/engines/LuaCommon/lualib/mw.html.lua
index 0d8bf268..26b80343 100644
--- a/engines/LuaCommon/lualib/mw.html.lua
+++ b/engines/LuaCommon/lualib/mw.html.lua
@@ -75,7 +75,7 @@ end
--
-- @param s
local function isValidTag( s )
- return s:match( '^[a-zA-Z]+$' )
+ return s:match( '^[a-zA-Z0-9]+$' )
end
-- Escape a value, for use in HTML