[pmwiki-devel] stripmagic
christian.ridderstrom at gmail.com
christian.ridderstrom at gmail.com
Fri Dec 29 10:01:13 CST 2006
On Fri, 29 Dec 2006, Patrick R. Michaud wrote:
> Actually, I think the text just needs clarification.
>
> The PSS() function removes the backslashes that are
> automatically inserted in front of quotation marks by
> the /e option of PHP's preg_replace function. PSS() is
> most commonly used in replacement arguments to Markup(),
> when the pattern specifies /e and one or more of the
> parenthesized subpatterns could contain a quote or backslash.
> ("PSS" stands for "PmWiki Strip Slashes".)
>
> Is that any better?
Yes, much better. I changed the text on the page to this:
The PSS() function removes the backslashes that are
automatically inserted in front of quotation marks by
the /e option of PHP's preg_replace function. PSS() is
most commonly used in replacement arguments to Markup(),
when the pattern specifies /e and one or more of the
parenthesized subpatterns could contain a quote or backslash.
("PSS" stands for "PmWiki Strip Slashes".)
Example of where PSS() is used with Markup():
-> [@
Markup('includepage', '>if',
'/\\(:includepage\\s+(\\S.*?):\\)/ei',
"PRR(IncludePageText(\$pagename, PSS('$1')))");
@]
/Christian
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
More information about the pmwiki-devel
mailing list