Allow special characters
This commit is contained in:
parent
8cf86311a5
commit
9765e9c2a3
2
init.lua
2
init.lua
@ -11,7 +11,7 @@ local function get_formspec()
|
|||||||
if news_file then
|
if news_file then
|
||||||
local news = news_file:read("*a")
|
local news = news_file:read("*a")
|
||||||
news_file:close()
|
news_file:close()
|
||||||
news_fs = news_fs.."textarea[0.25,0;12.1,9;news;;"..news.."]"
|
news_fs = news_fs.."textarea[0.25,0;12.1,9;news;;"..minetest.formspec_escape(news).."]"
|
||||||
else
|
else
|
||||||
news_fs = news_fs.."textarea[0.25,0;12.1,9;news;;No current news.]"
|
news_fs = news_fs.."textarea[0.25,0;12.1,9;news;;No current news.]"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user