TAL: markup language text support

Bug #143563 reported by Dieter Maurer on 2005-11-12
Affects Status Importance Assigned to Milestone

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 '&lt;'.

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).

Dieter Maurer (d.maurer) wrote :
Changed in zope2:
importance: Medium → Wishlist
affects: zope2 → zope.tal
Colin Watson (cjwatson) wrote :

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/zopefoundation/zope.tal.

Changed in zope.tal:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments