Monday, November 08, 2010 at 12:05 AM.

on untaint (s, flNeuterJavaScript=true, macroStartChars="<%") {
		<<11/8/01; 9:32:26 PM by JES
			<<Changed default startMacroChars from "{" to "<%".
		<<8/14/01; 4:31:29 PM by JES
			<<New optional parameter, macroStartChars, used to specify which macro characters to neuter. The first character is converted to a numerical HTML entity.
		<<2/20/01; 4:05:30 PM by PBS
			<<Neuter JavaScript if flNeuterJavaScript is true.
		<<2/15/01; 3:11:35 PM by PBS
			<<Created. Prevent macros and JavaScript from being executed.
	local (replaceWith = "&#" + number (macroStartChars[1]) + ";" + string.delete (macroStartChars, 1, 1));
	s = string.replaceAll (s, macroStartChars, replaceWith);
	if flNeuterJavaScript {
		s = html.neuterJavaScript (s)};
	return (s)}

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.