sul-dlss / mods_display

MODS Display is a gem to centralize the display logic of MODS medadata.
Other
2 stars 5 forks source link

<br> tags are coming out xml escaped in note field #113

Closed jcoyne closed 2 years ago

jcoyne commented 2 years ago

107 seems to have been fixed for the "alternative title", but I still see <br> tags in the note field for this record in Argo:

Screen Shot 2022-06-08 at 10 22 01 AM

However the record seems to display correctly in PURL: https://sul-purl-stage.stanford.edu/bb181jh418

The XML does not appear to have any html characters in it. Perhaps the note field is not marked as html_safe?

Screen Shot 2022-06-08 at 10 23 36 AM

It looks to me like this delimiter should be .html_safe https://github.com/sul-dlss/mods_display/blob/cdf8874358d7168066b0395b18456bcea2c3e86d/lib/mods_display/fields/note.rb#L15