From 4b84b90935668b189dd64744ff2074f2d1f9f1b9 Mon Sep 17 00:00:00 2001 From: Zerline Date: Mon, 8 Jun 2020 18:42:53 +0200 Subject: [PATCH] Little more styling. --- packages/base-manager/src/manager-base.ts | 2 +- tests/test_sanitizer.ipynb | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/base-manager/src/manager-base.ts b/packages/base-manager/src/manager-base.ts index 18e80eb7aa..4a4a1d7f38 100644 --- a/packages/base-manager/src/manager-base.ts +++ b/packages/base-manager/src/manager-base.ts @@ -63,7 +63,7 @@ function default_inline_sanitize(html: string): string { '*': ['aria-*', 'style', 'title'], a: ['href'], img: ['src'], - style: ['media'] + style: ['media', 'type'] } }); } diff --git a/tests/test_sanitizer.ipynb b/tests/test_sanitizer.ipynb index 37adfdf68c..f7fc3808e5 100644 --- a/tests/test_sanitizer.ipynb +++ b/tests/test_sanitizer.ipynb @@ -33,7 +33,7 @@ "metadata": {}, "outputs": [], "source": [ - "Text(description=\"

italic

bold

\", description_html=False)" + "Text(description=\" NOT styled\", description_html=False)" ] }, { @@ -42,7 +42,16 @@ "metadata": {}, "outputs": [], "source": [ - "Text(description=\" a styled label\", description_html=True)" + "Text(description=\" styled\", description_html=True)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "Textarea(description=\" underlined\", description_html=True)" ] } ],