thegrb93 / StarfallEx

Starfall, but with active development and more features. Write Garry's mod chips similar to E2, but in lua
https://discord.gg/yFBU8PU
Other
199 stars 111 forks source link

Add HTML & CSS (Material from DHTML Panel) #736

Closed adamnejm closed 4 years ago

adamnejm commented 4 years ago

Disallowing JS or sandboxing it with use of CSS classes like <div class="myClass onclick"></div> OR <div class="myClass" onclick="starfall.onclick(args)"></div> and internally making use of DHTML.AddFunction And allowing only minimal SF -> JS interactions like adding/removing classes or elements

Even when HTML would be stripped down to minimum, divs text etc and maybe some crazier stuff with appropriate perms like img tags.

https://wiki.garrysmod.com/page/Category:DHTML

thegrb93 commented 4 years ago

If we can limit the number of nodes created and which nodes are created and enforce url whitelists then maybe it could work.