From b89fe2172d2e5ece58f278c61fe002626b63e6a4 Mon Sep 17 00:00:00 2001 From: Ezra Odio Date: Wed, 17 Jul 2024 14:46:10 +0000 Subject: [PATCH] Default to not allow HTML content in tables --- .../Editor/__snapshots__/ColumnsSettings.test.tsx.snap | 10 +++++----- viz-lib/src/visualizations/table/getOptions.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/viz-lib/src/visualizations/table/Editor/__snapshots__/ColumnsSettings.test.tsx.snap b/viz-lib/src/visualizations/table/Editor/__snapshots__/ColumnsSettings.test.tsx.snap index b2175a0c4d..3382a97a14 100644 --- a/viz-lib/src/visualizations/table/Editor/__snapshots__/ColumnsSettings.test.tsx.snap +++ b/viz-lib/src/visualizations/table/Editor/__snapshots__/ColumnsSettings.test.tsx.snap @@ -5,7 +5,7 @@ Object { "columns": Array [ Object { "alignContent": "right", - "allowHTML": true, + "allowHTML": false, "allowSearch": false, "booleanValues": Array [ "false", @@ -39,7 +39,7 @@ Object { "columns": Array [ Object { "alignContent": "left", - "allowHTML": true, + "allowHTML": false, "allowSearch": false, "booleanValues": Array [ "false", @@ -73,7 +73,7 @@ Object { "columns": Array [ Object { "alignContent": "left", - "allowHTML": true, + "allowHTML": false, "allowSearch": false, "booleanValues": Array [ "false", @@ -107,7 +107,7 @@ Object { "columns": Array [ Object { "alignContent": "left", - "allowHTML": true, + "allowHTML": false, "allowSearch": true, "booleanValues": Array [ "false", @@ -141,7 +141,7 @@ Object { "columns": Array [ Object { "alignContent": "left", - "allowHTML": true, + "allowHTML": false, "allowSearch": false, "booleanValues": Array [ "false", diff --git a/viz-lib/src/visualizations/table/getOptions.ts b/viz-lib/src/visualizations/table/getOptions.ts index 2c4a090e39..e83b8a7af6 100644 --- a/viz-lib/src/visualizations/table/getOptions.ts +++ b/viz-lib/src/visualizations/table/getOptions.ts @@ -55,7 +55,7 @@ function getDefaultColumnsOptions(columns: any) { allowSearch: false, alignContent: getColumnContentAlignment(col.type), // `string` cell options - allowHTML: true, + allowHTML: false, highlightLinks: false, fixed: false, }));