All pastes #355986 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-02-14 21:41 UTC
rendered paste body
proc
	parse_text(msg) //this parses the text for the wsay and say verbs 'n such
		if(length(msg)>300) msg=copytext(msg,1,300) //security: trunicate the message to 300 characters to prevent spam
		msg=html_encode(msg) //security: strip out all HTML tags (so they can't do <font size=9>SPAMSPAMSPAMSPAM[...]
		msg=dd_replacetext(msg,"\n","\\n") //security: use dd_replacetext to render the \n (newline) tag useless
		msg=dd_replacetext(msg,"\t","\\t") //security: use dd_replacetext to render the \t (tab) tag useless
		return msg