Skip to content

Commit

Permalink
Merge pull request #17 from outlandishideas/xml-escapes
Browse files Browse the repository at this point in the history
Protect against invalid sitemap XML
  • Loading branch information
rasmuswinter authored Apr 27, 2023
2 parents acf8118 + ed1a486 commit 9255705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Oowp/View/SitemapView.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public function render($args = [])
protected function renderPost($post)
{
?>
<loc><?php echo $post->permalink(); ?></loc>
<loc><?php echo str_replace('&', '&amp;', $post->permalink()); ?></loc>
<lastmod><?php echo $post->modifiedDate('Y-m-d'); ?></lastmod>
<?php
}
}
}

0 comments on commit 9255705

Please sign in to comment.