Root cause: page contains a ds-contextual-navigation web component with attribute last-visited-country="" <!--="". Of course attribute value breaks the comments cleanup logic (string regex based).
PR improves the regex and cleanup logic, even though I am not sure removing comments still matter now we are using a DOM element everywhere.
While importing https://news.sap.com/2023/03/sap-cx-intelligent-industry-tailored-solutions/, @mhaack found a weird behaviour: content gets stripped out.
Root cause: page contains a
ds-contextual-navigation
web component with attributelast-visited-country="" <!--=""
. Of course attribute value breaks the comments cleanup logic (string regex based).PR improves the regex and cleanup logic, even though I am not sure removing comments still matter now we are using a DOM element everywhere.