Closed jean-gui closed 1 year ago
@jean-gui I merged this, added a test. It seems only the heading value needs to be escaped (since the ID was OK) so I removed the htmlentities() from the heading link attribute to avoid unecessary code.
I hope this fixes https://github.com/w3c/w3c-website/issues/184
It does, thanks @simonrjones
If titles contain special characters such as &, Strata throws the following exception in dev:
An exception has been thrown during the rendering of a template ("Warning: Strata\Frontend\View\TableOfContents\HeadingCollection::buildListItems(): unterminated entity reference Industry Sponsor").
And produces empty items in prod.This PR simply escapes that content.