TAL: markup language text support
Bug #143563 reported by
Dieter Maurer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.tal |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
Markup language text ("mltext" for short) corresponds to SGML's RCDATA
(Replaceable Character data). Such text can contain entity references
(especially character references) but no other markup.
TAL currently supports this text type badly. Because, it may contain
entity reference, we must use 'structure'. But 'structure' does not
quote '<' which should be quoted in mltext. To get it right,
we must use 'structure' and explicitely replace '<' by '<'.
The attached patch defines the new quote type "mltext".
It can be used whereever the other quote types ('text' and 'structure')
can be used. 'mltext' leaves entity references unquoted but quotes
'<' (as required by mltext).
Changed in zope2: | |
importance: | Medium → Wishlist |
affects: | zope2 → zope.tal |
To post a comment you must log in.
The zope.tal project on Launchpad has been archived at the request of the Zope developers (see https:/ /answers. launchpad. net/launchpad/ +question/ 683589 and https:/ /answers. launchpad. net/launchpad/ +question/ 685285). If this bug is still relevant, please refile it at https:/ /github. com/zopefoundat ion/zope. tal.