Menu

IE7 escapeXml apostrophe

Help
shnplr
2008-05-07
2012-10-09
  • shnplr

    shnplr - 2008-05-07

    The column attribute "escapeXml" translates an apostrophe to "'" in html which does not work for IE7 - perhaps it should be "'"?

     
    • shnplr

      shnplr - 2008-05-07

      actually its not quite that simple:
      for html media it should be escaped as "'"
      for export media it should probably be escaped as "&apos'"

      So (for apostrophe's) we resolve this as follows:

      <display:column media="html" ...>
      <c:out value="${row.name}" />
      </display:column>

      <display:column media="excel" property="name" escapeXml="true" ... />

      perhaps displaytag can be modified to write the correct translation as it outputs the media.

       

Log in to post a comment.