From 8bc4aaba3e9c2b685e9bce255f1a918356442dc4 Mon Sep 17 00:00:00 2001 From: Craig Anderson Date: Thu, 30 Jan 2020 10:24:33 +0000 Subject: [PATCH] Wrap URLs in CDATA sections so ampersands aren't processed as entities. --- medicines/web/src/tools/sitemap-generator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/medicines/web/src/tools/sitemap-generator.ts b/medicines/web/src/tools/sitemap-generator.ts index fb93ff77c..2d8c040cc 100644 --- a/medicines/web/src/tools/sitemap-generator.ts +++ b/medicines/web/src/tools/sitemap-generator.ts @@ -90,7 +90,7 @@ const createSiteMapString = async () => { .map( path => `` + - `${BASE_URL}${path}` + + `` + `${moment(pathsObj[path].lastModified).format( YYY_MM_DD, )}` +