msm-sitemap
msm-sitemap copied to clipboard
kses for sitemap content
Currently, the generated sitemap content for each day is stored in meta. We just output the meta as-is, presuming it to be safe. This isn't ideal and we should see if we can uses kses to clean the data before outputting it.
I think this was more of an issue when we were just adding XML to post meta, before we used SimpleXMLElement the data.
We could harden up the filters in https://github.com/Automattic/msm-sitemap/blob/master/msm-sitemap.php#L428-L439. I don't think https://github.com/Automattic/msm-sitemap/blob/master/msm-sitemap.php#L437 does anything anyway