[pmwiki-users] Disable Markup

Patrick R. Michaud pmichaud at pobox.com
Mon Aug 7 18:03:03 CDT 2006


On Mon, Aug 07, 2006 at 06:17:50PM -0400, The Editor wrote:
> It's just a pagelist fmt (with pagelist extension) using
> 
> [[#picklist]]
> (:if equal {<$Group}:)(:select {$$selectname}:)(:if:)
> (:option {=$FullName}:){=$Name}
> (:if equal {>$Group}:)(:selectend:)
> [[#picklistend]]
> 
> And the following Markups
> 
> Markup('select', 'inline', '/\(:select (.*?):\\)/', '<select name=$1>');
> Markup('option', 'inline', '/\(:option (.*?):\\)/', '<option value=$1>');
> Markup('selectend', 'inline', '/\(:selectend:\\)/', '</select>');
>
> How and where do I "escape the values"?  Perhaps I need only change
> the order from "inline" to something later in the markup table?

Normally we escape the values using PmWiki's Keep() function, which
prevents PmWiki from performing any more markup translations.
Thus:

    Markup('option', 'inline',
      '/\\(:option (.*?):\\)/e',
      "Keep(PSS(\"<option value='$1'>\"))");

Pm




More information about the pmwiki-users mailing list