0

I have SXA site pages and I need to clear the extra Sitecore html tags (script,link).

enter image description here

After div tag enter image description here

Specification: Sitecore SXA 10.2

Can anyone provide any help ?

1 Answer 1

0

Before you do anything, first find out why you have duplicated </body>, </html> tags. Looks suspicious.


Manipulate HTML once tags are rendered by modifying/creating your own version of

\Views\SxaLayout\SxaLayout.cshtml

btw. some SXA <script> elements are rendered before </body> and that's expected.

1
  • The duplicate tags are the ones which I have added in the page.
    – Sidso
    Apr 13, 2022 at 6:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.