Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
e78a8eb54b05
Commit
f637a5b9
authored
Aug 19, 2021
by
Noé Gaumont
🐙
Browse files
fix: don't escape value in table
#369
--HG-- branch : 3.32
parent
adf764454722
Changes
1
Show whitespace changes
Inline
Side-by-side
cubicweb/view.py
View file @
e78a8eb5
...
...
@@ -361,16 +361,16 @@ class View(AppObject):
if
tr
:
label
=
display_name
(
self
.
_cw
,
label
)
if
table
:
w
(
"<th>%s</th>"
,
label
)
w
(
"<th>%s</th>"
,
label
,
escape
=
False
)
else
:
w
(
'<span class="label">%s</span> '
,
label
)
w
(
'<span class="label">%s</span> '
,
label
,
escape
=
False
)
if
table
:
if
not
(
show_label
and
label
):
w
(
'<td colspan="2">%s</td></tr>'
,
value
)
w
(
'<td colspan="2">%s</td></tr>'
,
value
,
escape
=
False
)
else
:
w
(
"<td>%s</td></tr>"
,
value
)
w
(
"<td>%s</td></tr>"
,
value
,
escape
=
False
)
else
:
w
(
"<span>%s</span></div>"
,
value
)
w
(
"<span>%s</span></div>"
,
value
,
escape
=
False
)
# concrete views base classes #################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment