summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index ae32417..3d09fc7 100644
--- a/init.lua
+++ b/init.lua
@@ -75,10 +75,10 @@ doc.new_category("nodes", {
end
formstring = formstring .. "textarea[0.25,1;10,8;;"
if longdesc ~= nil then
- formstring = formstring .. "Description: "..longdesc.."\n\n"
+ formstring = formstring .. "Description: "..minetest.formspec_escape(longdesc).."\n\n"
end
if usagehelp ~= nil then
- formstring = formstring .. "Usage help: "..usagehelp .. "\n\n"
+ formstring = formstring .. "Usage help: "..minetest.formspec_escape(usagehelp).. "\n\n"
end
formstring = formstring .. "Maximum stack size: "..data.def.stack_max.. "\n"