diff --git a/package.json b/package.json index 19ac120..28fcec2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@indec/form-builder", - "version": "3.6.1", + "version": "3.6.2", "description": "Form builder", "main": "index.js", "private": false, diff --git a/src/components/FormBuilder/SectionHeader/Introduction/Introduction.js b/src/components/FormBuilder/SectionHeader/Introduction/Introduction.js index 444a583..c5674d8 100644 --- a/src/components/FormBuilder/SectionHeader/Introduction/Introduction.js +++ b/src/components/FormBuilder/SectionHeader/Introduction/Introduction.js @@ -5,6 +5,20 @@ function Introduction({introduction}) { if (!introduction) { return null; } + const isHTML = /<[^>]+>/g.test(introduction); + + if (isHTML) { + return ( + + ); + } + return ( {introduction}