Copied from BYOND Features forum by Airjoe
We have html_encode that helps us remove stuff like font tags from chat. Though we can do that players can still add line breaks with \n. A feature to disallow those in text from players would be good. There are times we want inputed text from players to only take up a little space. Even with character limits making new lines can expand a small message beyond the desired size.
ID:91977
![]() Feb 23 2010, 2:43 pm
|
|||||||
Redundant
| |||||||
![]() Feb 24 2010, 1:04 pm
|
|
This can be accomplished in soft code by using findtext() to look for \n characters.
|