Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1530

Add escapeXml attribute to cms:out tag

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.6.2, 3.6.3
    • 3.0.2
    • taglibs
    • None
    • All

    Description

      In order to generate validating XHTML and XML, it would be very useful to have an escapeXml attribute for the cms:out tag. Currently one has to rely on JSTL to get proper escaping, like this:

      <cms:out nodeDataName="text" var="text"/><c:out value="${text}"/>

      (Note the JSTL c:out tag escapes by default, though you can turn it off with its escapeXml attribute.)

      It would be nicer to be able to do this:

      <cms:out nodeDataName="text" escapeXml="true" />

      Since magnolia templates (FCK Editor paragraphs especially) rely on the existing behavior, this attribute probably needs to default to false, rather than true as the JSTL template does.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              had Jan Haderka
              seanmctex Sean McMains
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD