From f5440ec39b1369ff9cf68d1709b166c030aa9edf Mon Sep 17 00:00:00 2001 From: Robert Kozik Date: Tue, 16 Apr 2024 20:16:34 +0200 Subject: [PATCH] enable self closing tags in html messages --- src/components/HTMLEngineProvider/BaseHTMLEngineProvider.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/HTMLEngineProvider/BaseHTMLEngineProvider.tsx b/src/components/HTMLEngineProvider/BaseHTMLEngineProvider.tsx index 9551e9d8f7c8..51f9981f1524 100755 --- a/src/components/HTMLEngineProvider/BaseHTMLEngineProvider.tsx +++ b/src/components/HTMLEngineProvider/BaseHTMLEngineProvider.tsx @@ -92,6 +92,9 @@ function BaseHTMLEngineProvider({textSelectable = false, children, enableExperim tagsStyles={styles.webViewStyles.tagStyles} enableCSSInlineProcessing={false} systemFonts={Object.values(FontUtils.fontFamily.single)} + htmlParserOptions={{ + recognizeSelfClosing: true, + }} domVisitors={{ // eslint-disable-next-line no-param-reassign onText: (text) => (text.data = convertToLTR(text.data)),