ID:163432
 
I've got some code used to strip non-file characters from a string:
nonFileChars = [(TMDI_list2text(nonFileChars))]

The problem is inside nonFileChars, the element
\<</xmp> is being converted to
<
 and so, the less than symbol is never found inside the list. Make sense?

So, how would I go about catching the less than (and greater than) sign for this proc?</<>
Use html_encode().
TheMonkeyDidIt wrote:
The element \< is being converted to &lt;

That's precisely what \< is supposed to do. (http://developer.byond.com/docs/ref/info.html#/DM/text/ macros) Use "<" and ">" instead.

    var/nonFileChars[] = list("\\","?","*",":","<",">","|")     //did not include /
In response to Shadowdarke
Shadowdarke wrote:
Use "<" and ">" instead.

Duh.
The one thing I didn't try. Man, I feel stoooopid.
Thanks guys.