Allow special characters

This commit is contained in:
clavinet 2019-05-26 11:59:49 +02:00 committed by Ezhh
parent 8cf86311a5
commit 9765e9c2a3

View File

@ -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