[pmwiki-devel] iframes with & in the src="url"
Patrick R. Michaud
pmichaud at pobox.com
Fri Feb 25 17:44:11 CST 2011
On Fri, Feb 25, 2011 at 06:30:01PM -0500, Ryan O'Toole wrote:
> I can think of a few solutions, such as turning off ampersand interpolation
> within HTML tags. Dunno if that is enablehtml.php type of change, or
> pmwiki ROS change. Another option would be able to just turn off the
> & interpolation within a config.
It'd have to be an enablehtml.php type of change -- PmWiki itself gets
this correct. In particular, you probably want to adjust the value
passed to Keep(PSS(...)) to de-convert the & values within the
angle brackets. Perhaps something like:
function EnableHtml($tag) {
Markup(
"html-$tag",
'>{$var}',
'/<(\/?('.$tag.')(?![a-z!])(([\'"]).*?\4|.*?)*?)>/ie',
'Keep(PSS(str_replace("&", "&", \'<$1>\')))');
}
Pm
More information about the pmwiki-devel
mailing list