signs eat backslashes
Niklp09 opened this issue · comments
write a sign containing "\", it's displayed properly, but when you edit it again, formspec treating them as escapes and they disappear
yl issue: https://gitea.your-land.de/your-land/bugtracker/issues/5016
Looks like it's missing a minetest.formspec_escape()
, which is bad 👀
display_modpack/signs_api/init.lua
Line 32 in e0e0305
display_modpack/signs_api/init.lua
Lines 62 to 63 in e0e0305
Only problem is you can't just escape the text before saving it in display_text
, because that string is also used for creating the entities, so you would see the escapes.