On 23.03.2009 01:49, Sean Coates wrote:
> ... Where did "bar" go? HTMLTokenizer thought it was an invalid
> attribute or bad markup and dropped it.
>
> Here's a plausible real-world example:
> $ echo 'echo InputFilter::filter("one<two but four>three");' | heval
> one<two>three
>
> ... that's just wrong.
>
> This affects ticket #65 (and #104).
>
> If anyone has ideas, please speak up! (-:
In InputFilter, around line 445, instead of building the new text node's
value manually, just say 'value' => (string)$node ... that serializes
the node back to text again, including attributes. But since the node
type will be changed to text, it will be escaped on output.
-Matt
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---