That seems to replace the single quotes by double quotes, instead of 'slashing' them (which would seem to me as the preffered behavior?). In this case it's usable though, so thanks :)

Grt, Fab

----- Original Message ----- From: "Pierre van Rooden" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, January 24, 2005 11:53 AM
Subject: Re: [Developers] Escaping single quotes



Fabian Scheepers wrote:
Is there a nice tag-way for escapeingf single quotes (for use in a javascript document.write ('<mm:field/>')), or do i have to use a custom function?

I suggest <mm:field escape="sql" />

--
Pierre van Rooden
Mediapark, C 107 tel. +31 (0)35 6772815
"Anything worth doing is worth overdoing."

_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

_______________________________________________ Developers mailing list [email protected] http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to