Month: April 2020

  • Removing HTML from XHtmlString property values in Episerver

    I had to add a character limit to an XHtmlString property in Episerver on a publish event the other day, and knew I had get rid of the markup to get an accurate count. I was pleased to find that the good old TextIndexer was still in there to clean the HTML for me. Here…

  • Adding an index xml-file with GETA SEO Sitemaps for Episerver

    Sometimes you need a sitemap index file for easing access to multiple sitemaps. Here is a way of creating one using a custom generator for GETA SEO Sitemaps, described in Multiple custom sitemap.xml generators with GETA SEO Sitemaps for Episerver. The UseGeneratorFor method will expect the index file to be named sitemap.xml, so be sure…