ZPT escapes attributes when it shouldn't
Bug #142378 reported by
Bug Importer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
ZPT escapes the ampersand of character entities
in attributes. They should not be escaped since
they are legal HTML and needed to make accented
characters, for example in <img alt="">
To check this, put the following line in a Template
and view the result.
<span alt="á
To post a comment you must log in.
Status: Pending => Resolved
Fixed in CVS trunk by not escaping ampersands in attributes that start off a syntactically valid character entity. Note that this includes semantic nonsense such as "&blah;" and "�" as well as valid entities such as "á" and "d".