模組:沙盒/Emojiwiki/html
来自维基百科,自由的百科全书
![文档图示](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
您可能想要创建本Scribunto模块的文档。 编者可以在本模块的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模块的子页面。 |
local p = {}
function p.tag(tagname,to,content)
local ostr = ""
local rstr = ""
local stag = ""
local etag = ""
for k, v in pairs(to) do
ostr = ostr .. " " .. k .. "=\"" .. v .. "\""
end
etag = "</" .. tagname .. ">"
stag = "<" .. tagname .. ostr .. ">"
rstr = stag .. content .. etag
return rstr
end
return p
Wikiwand in your browser!
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.