mirror of
https://github.com/simonw/datasette.git
synced 2026-09-11 19:14:07 +02:00
Escape primary-key cell values in row pages
This commit is contained in:
parent
35232b5c37
commit
158c88f259
1 changed files with 2 additions and 2 deletions
|
|
@ -482,8 +482,8 @@ class RowView(BaseView):
|
|||
for row in display_rows:
|
||||
for cell in row:
|
||||
if cell["column"] in pk_set:
|
||||
cell["value"] = markupsafe.Markup(
|
||||
"<strong>{}</strong>".format(cell["value"])
|
||||
cell["value"] = markupsafe.Markup("<strong>{}</strong>").format(
|
||||
cell["value"]
|
||||
)
|
||||
|
||||
label_column = await db.label_column_for_table(table) if is_table else None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue