Commit 501dab59 authored by Elouan Martinet's avatar Elouan Martinet
Browse files

fix(views): remove unneeded xml_escape for primary titles

The title is already escaped by self.w().

--HG--
branch : 3.32
parent 1480aad53b29
......@@ -40,8 +40,6 @@ views describled below. For instance:
from cubicweb import _
from logilab.mtconverter import xml_escape
from cubicweb import Unauthorized, NoSelectableObject
from cubicweb.utils import support_args
from cubicweb.predicates import match_kwargs, match_context
......@@ -168,7 +166,7 @@ class PrimaryView(EntityView):
"""Renders the entity title, by default using entity's
:meth:`dc_title()` method.
"""
title = xml_escape(entity.dc_title())
title = entity.dc_title()
if title:
if self.is_primary():
self.w("<h1>%s</h1>", title)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment