[Phplib-trackers] [ phplib-Support Requests-743978 ] escaping {tag}
Brought to you by:
nhruby,
richardarcher
From: SourceForge.net <no...@so...> - 2003-05-27 02:42:14
|
Support Requests item #743978, was opened at 2003-05-27 12:10 Message generated for change (Comment added) made by richardarcher You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=743978&group_id=31885 Category: None Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: escaping {tag} Initial Comment: say i need to put a string with a { and a } somewhere in it, e.g.: var re = new RegExp('^[0-9]{1,9}$'); how can i handle that? ---------------------------------------------------------------------- >Comment By: Richard Archer (richardarcher) Date: 2003-05-27 12:42 Message: Logged In: YES user_id=279311 You could set $t->unknowns="keep" Or override the finish() method with one which includes a comma in the list of non-template-varname characters. Or call $t->parse() and not bother with finish() at all. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403612&aid=743978&group_id=31885 |