Brendiem / ala-citizenscience

Automatically exported from code.google.com/p/ala-citizenscience
0 stars 1 forks source link

Allow HTML in data matrix attributes table captions #335

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a data matrix attribute with a label that contains HTML.
2. View the entry form for the project.

What is the expected output? What do you see instead?
The HTML is escaped rather than rendered.  It should be rendered to allow for 
entering descriptions and styles for the table header.

Original issue reported on code.google.com by stepha...@gaiaresources.com.au on 24 Aug 2012 at 12:32

GoogleCodeExporter commented 9 years ago
The page was using the <caption> tag to add the heading to the table and a 
<c:out> to display the value.  This is replaced with a div and style to keep 
the header centered on the page instead of on the table.  This is important 
with large tables so that the caption does not scroll with the table and appear 
out of line with the other page attributes.

Original comment by stepha...@gaiaresources.com.au on 24 Aug 2012 at 12:35

GoogleCodeExporter commented 9 years ago
Fixed in r395.

Also replaced <c:out> with <cw:validateHtml> for data matrix table
headers to allow html in table headers.

Original comment by stepha...@gaiaresources.com.au on 14 Sep 2012 at 2:36