ID:2416371
Dec 15 2018, 5:35 am
|
|
hello how are you? How can I make a dream maker so that one can not place symbols like> <in their names?
|
html_encode(TEXT) Will encode the html so that it can't be displayed in the browser or output. You'll simply see the plain html. You can also do this. var list/_sanitize = list("<",">","/") |
You probably don't want to use . that way, if the loop fails for any reason that causes the proc to not reach the end the proc will return the value that was assigned to . instead of the string variable. (It probably won't be an issue in this case, but it's not a good habit to get into for this reason). If you want to use . in this case you'd probably want to do it the other way around.
. = string This way doesn't require a return at the end, and will give you a string even if something goes wrong. |
Create a list in the function that contains the letters/numbers/symbols that you want to allow in names.
Check each character in the name in a loop to make sure its in that list, and then if the character isn't in the list then you do whatever you want to do with it.
take your name the user picks.
run it through the function...