From f0689f06c6110a04b47e2e3aae02d0990ab731f4 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Mon, 27 Mar 2023 13:15:02 +0000 Subject: [PATCH 1/2] fix(many): innerHTML is disabled by default --- BREAKING.md | 5 +++++ core/src/components/alert/test/basic/index.html | 6 ++++++ core/src/components/loading/test/basic/index.html | 6 ++++++ core/src/components/toast/test/basic/index.html | 6 ++++++ core/src/utils/config.ts | 2 +- 5 files changed, 24 insertions(+), 1 deletion(-) diff --git a/BREAKING.md b/BREAKING.md index 9726b59b11d..01b7efca6ab 100644 --- a/BREAKING.md +++ b/BREAKING.md @@ -35,6 +35,7 @@ This is a comprehensive list of the breaking changes introduced in the major ver - [Textarea](#version-7x-textarea) - [Toggle](#version-7x-toggle) - [Virtual Scroll](#version-7x-virtual-scroll) +- [Config](#version-7x-config) - [Types](#version-7x-types) - [Overlay Attribute Interfaces](#version-7x-overlay-attribute-interfaces) - [JavaScript Frameworks](#version-7x-javascript-frameworks) @@ -297,6 +298,10 @@ Developers using the component will need to migrate to a virtual scroll solution Any references to the virtual scroll types from `@ionic/core` have been removed. Please remove or replace these types: `Cell`, `VirtualNode`, `CellType`, `NodeChange`, `HeaderFn`, `ItemHeightFn`, `FooterHeightFn`, `ItemRenderFn` and `DomRenderFn`. +

Config

+ +- `innerHTMLTemplatesEnabled` defaults to `false`. Developers who wish to use the `innerHTML` functionality inside of `ion-alert`, `ion-infinite-scroll-content`, `ion-loading`, `ion-refresher-content`, and `ion-toast` must set this config to `true` and properly sanitize their content. +

Types

Overlay Attribute Interfaces

diff --git a/core/src/components/alert/test/basic/index.html b/core/src/components/alert/test/basic/index.html index 7ae66082d9e..429223fa36f 100644 --- a/core/src/components/alert/test/basic/index.html +++ b/core/src/components/alert/test/basic/index.html @@ -58,6 +58,12 @@