ID:174354
 
How would one disable HTML editing of names and text?
var/newname = input("What will your name be?") as text
if(findText(newname, "<") && findText(newname, ">"))
alert("Sorry, no HTML in names")
return //stop the name making
In response to JackGuy
What if they want a smiley in their name? >:(
A solution using html_encode() would probably be better.
In response to Jon88
if(findText(newname, "<") && findText(newname, ">"))

If you notice, it only takes effect if both "<" and ">" are in teh name V_V
In response to JackGuy
_<