From 9fcffc4a1c0fcb7eee3cdde5e091e9d58bc8d96f Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 8 Sep 2023 17:31:46 +0200 Subject: [PATCH] escape --- test.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.jsx b/test.jsx index f3096a1..3a75a5d 100644 --- a/test.jsx +++ b/test.jsx @@ -25,7 +25,7 @@ function createChildren(style, useInlineStyles) { function createElement({ node, style, useInlineStyles, key }) { const { properties, type, tagName, value } = node; - if (type === "text") { + if (type === "te\nxt") { return value; } else if (tagName) { const TagName = tagName;