I have been developing a dashboard that would give the user the option to view related tables and have noticed some issues and a possible bug. I started this by adding a relationship class in our SDE, then added it to our portal. There was no problem with this when creating a feature service via arcgis pro.
However, I noticed after opening it in the new map viewer--as opposed to the classic--that when you configure pop ups to add related records there's a problem when you add the pop up and click on 'show all'.

Everything looks good, right?
However, after clicking 'show all' there's what appears to be some sort of html issue that pops up:

the "<br class='test-text-new-line' is the issue here.
It should be noted that the title at the top displaying the FacilityID and Facility name is a simple arcade script, and removing it doesn't affect this error. Has anybody else had issues with this? Just curious it seems like a bug esri has to address. Thanks!