From: Chris Nandor <pudge@po...> - 2000-11-27 16:03:06
In bender, this is strip_literal($str). In MAIN, it is stripByMode($str,
'literal'). It basically just converts the existing string to a literal
counterpart that can be put directly into HTML, converting the < and > and
This function does NOT insert whitespace into the strings, because it
should only be called by internal functions, never for a comment, but only
for inserting literal HTML into a TEXTAREA or somesuch.
So instead of all the calls to stripByMode($str, 'literal', 1) where the 1
would denote that whitespace should not be inserted, now whitespace will
not be inserted simply by virtue of the mode being 'literal'.
Chris Nandor pudge@... http://pudge.net/
Open Source Development Network pudge@... http://osdn.com/
Get latest updates about Open Source Projects, Conferences and News.