mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 03:27:44 +08:00
fix escaping in sql console results
This commit is contained in:
parent
cd72ea524e
commit
a099876088
2 changed files with 4 additions and 5 deletions
5
package-lock.json
generated
5
package-lock.json
generated
|
@ -1,12 +1,11 @@
|
|||
{
|
||||
"name": "trilium",
|
||||
"version": "0.59.1",
|
||||
"version": "0.59.2",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "trilium",
|
||||
"version": "0.59.1",
|
||||
"version": "0.59.2",
|
||||
"hasInstallScript": true,
|
||||
"license": "AGPL-3.0-only",
|
||||
"dependencies": {
|
||||
|
|
|
@ -60,7 +60,7 @@ export default class SqlResultWidget extends NoteContextAwareWidget {
|
|||
const $row = $("<tr>");
|
||||
|
||||
for (const key in result) {
|
||||
$row.append($("<th>").html(key));
|
||||
$row.append($("<th>").text(key));
|
||||
}
|
||||
|
||||
$table.append($row);
|
||||
|
@ -69,7 +69,7 @@ export default class SqlResultWidget extends NoteContextAwareWidget {
|
|||
const $row = $("<tr>");
|
||||
|
||||
for (const key in result) {
|
||||
$row.append($("<td>").html(result[key]));
|
||||
$row.append($("<td>").text(result[key]));
|
||||
}
|
||||
|
||||
$table.append($row);
|
||||
|
|
Loading…
Reference in a new issue