[pmwiki-users] Passing a url as a string do a custome markup and using it
dominique.faure at gmail.com
Tue May 30 04:37:07 CDT 2006
On 5/30/06, Chris Cox <ccox at airmail.net> wrote:
> I have a simple function that uses ParseArgs.
> I have markup that looks like:
> Now.. .if I hard code the feed value to this URL inside of my php, it
> works fine... but somehow I'm not getting the value correctly when
> passed in from pmwiki. Is there some way of protecting it.. or at least
> getting the actual value back??
> I know this isn't a lot to go on.. but I figure someone may have
> already been down this path.
> I've tried using a Keep($args['feed'])... but that didn't work either.
> I think it's being translated
> I've tried doing htmlentities($args['feed'])... I've also
> tried htmlspecialchars.
> Any hints?
You may try undoing PmWiki's htmlspecialchars conversion, at least for
the ampersands you have in url parameters. The following code is
stolen from ASCIIMath recipe:
$ascii = str_replace(
array('<:vspace>', '<', '>', '&'),
array('', '<', '>', '&'),
More information about the pmwiki-users