If a resource record contains an & entity immediately followed by a capital letter, like "M&M" PDF printing from the PUI fails. It works just fine on the staff side. It looks like the "line.match(/&[a-z]
/)" here should be "line.match(/&[A-Za-z]
Well, that didn’t work so well, but the proposed fix is wrong. I wasn’t thinking.
This seems to be exporting correctly now in the ArchivesSpace test environment, whether the capitalized character is directly after the ampersand or if the ampersand is escaped.
This appears to work now to me as well - I tried it in the test environment on the Alice Key M&M Papers in the PUI and I was able to export a PDF.