|
From: Chris N. <pu...@po...> - 2001-07-06 13:23:43
|
At 00:06 -0400 2001.06.21, John Bafford wrote:
>Hi again,
>
>I've been asked to do some processing on users' signatures before
>they're displayed. (We have another application that fills in the
>user's sig in the slash db, and it allows text that would cause
>display problems if we let slash display it without modification.)
>
>I'd like to be able to mangle sigs before they make it into the
>template that displays them. It seems that the only two places the
>sig is retrieved in the code is in DB/MySQL.pm in the
>getMetamodComments() and getCommentsForUser() functions. Is this
>correct, or am I missing something somewhere?
Why not just use a FILTER? For example:
[% FILTER strip_literal; user.sig; END %]
That will convert & and < and > to their HTML entities, as well as some
other things. See Slash::Utility for the strip_* functions, and
slashstyle.pod.
--
Chris Nandor pu...@po... http://pudge.net/
Open Source Development Network pu...@os... http://osdn.com/
|