aodn / aodn-portal

AODN Open Geospatial Portal
https://portal.aodn.org.au/
GNU General Public License v3.0
21 stars 13 forks source link

MOTD editor escapes html tags on create #212

Closed stewba closed 11 years ago

stewba commented 11 years ago

When you create a MOTD entry, any html tags that are included in the text body are escaped.

If you then update the MOTD and put in the same html tags, they aare not escaped and then operate as expected.

ie if you wanted to include 2 line breaks in your MOTD, upon create you would enter

, but when you create the motd, the lines breaks would be rendered as text. When you then edit the same MOTD the lines breaks would appear as </br></br>

If you then delete the escaped tag and re enter as previously, they render correctly.

The expected functionality is that html tags operate as expected (assuming we allow embedded html in out MOTD)

julian1 commented 11 years ago

Fixed in 14d88516a00563f in branch fix_motd_escaping

dnahodil commented 11 years ago

Reviewed. See 14d88516a00563f

dnahodil commented 11 years ago

Fixed in eca8ab53b10a107d0f839c635fd70f8fe5a44860 on master.