diff --git a/mercurial/templates/atom/branchentry.tmpl b/mercurial/templates/atom/branchentry.tmpl
--- a/mercurial/templates/atom/branchentry.tmpl
+++ b/mercurial/templates/atom/branchentry.tmpl
@@ -4,5 +4,5 @@
{urlbase}{url|urlescape}#branch-{node}
{date|rfc3339date}
{date|rfc3339date}
-
+ {branch|strip|escape}