[pmwiki-users] Markup() Abuse Recommendations.
Stirling Westrup
sti at pooq.com
Mon Oct 23 14:23:07 CDT 2006
Patrick R. Michaud wrote:
> On Mon, Oct 23, 2006 at 03:15:02PM -0400, Stirling Westrup wrote:
>> Patrick R. Michaud wrote:
>>> On Mon, Oct 23, 2006 at 01:55:34PM -0400, Stirling Westrup wrote:
>>>> Patrick R. Michaud wrote:
>>> Why would you be matching against <p ? Is that to try to
>>> match against paragraphs? If so, that doesn't seem at all useful
>>> or important at the 'directives' stage of processing, since paragraph
>>> tags aren't added until the 'block' stage.
>> This is part of a demonstration that deals with people who've stuck
>> <p>...</p> tags directly into the markup text.
>
> Ah. In this case, you need to be matching against '<p'
> instead of '<p', because the markup engine will have already
> run htmlspecialchars() on the markup text.
>
Oh, thanks! I hadn't realized that. I'll put in the appropriate changes.
More information about the pmwiki-users
mailing list