My Umbraco 8 XML sitemap is displaying html tags and I don't know why! Content Type header shows it's a text/xml document, but when inspecting elements the page includes html markup. The sitemap is using a cshtml template as directed by Umbraco documentation on creating an XML sitemap, with Layout = "null". What could be the issue here? And is it an issue to begin with? This is for SEO purposes, not for people to be reading, so it needs to be a proper XML sitemap.
Turns out it's not actually HTML. I think the browser does it? When viewing page source, it is indeed XML, but when inspecting the elements, it does contain HTML
HTML tags in XML sitemap when inspecting elements
My Umbraco 8 XML sitemap is displaying html tags and I don't know why! Content Type header shows it's a text/xml document, but when inspecting elements the page includes html markup. The sitemap is using a cshtml template as directed by Umbraco documentation on creating an XML sitemap, with Layout = "null". What could be the issue here? And is it an issue to begin with? This is for SEO purposes, not for people to be reading, so it needs to be a proper XML sitemap.
Turns out it's not actually HTML. I think the browser does it? When viewing page source, it is indeed XML, but when inspecting the elements, it does contain HTML
is working on a reply...