Get Started
·
Register
·
Login
Enjoy BYOND? Contribute today!
Posts
ID:174354
Creations
Okay, here's another! -.-'
in
Developer Help
[Tips]
ID:174354
Aug 24 2003, 12:52 pm
Enigmaster2002
How would one disable HTML editing of names and text?
#1
Aug 24 2003, 1:56 pm
JackGuy
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
#2
Aug 24 2003, 5:27 pm
In response to
JackGuy
(#1)
Jon88
What if they want a smiley in their name? >:(
A solution using html_encode() would probably be better.
#3
Aug 24 2003, 5:31 pm
In response to
Jon88
(#2)
JackGuy
if(findText(newname, "<") && findText(newname, ">"))
If you notice, it only takes effect if both "<" and ">" are in teh name V_V
#4
Aug 24 2003, 5:55 pm
In response to
JackGuy
(#3)
Garthor
_<
Copyright © 2013 BYOND. All rights reserved.
if(findText(newname, "<") && findText(newname, ">"))
alert("Sorry, no HTML in names")
return //stop the name making