I don’t want to be a pest, but here: https://brunoamaral.eu/story/museum-tour/
If you check this article on the Structured Data Tool it drops errors, because of the '
in the title.
As I was saying: Try using htmlescape (which is the function I guess will mask all these special characters fully). Maybe in connection with safejs it will go well.
After that I still think there should be quotes around all strings. Some day somewhere this will be fixed and your templates stop again working.
What I am trying to say is that those special characters need to be marked by &
-entities, not \
-entities.