diff --git a/typo3/sysext/form/Resources/Public/JavaScript/Backend/FormEditor/StageComponent.js b/typo3/sysext/form/Resources/Public/JavaScript/Backend/FormEditor/StageComponent.js index bb1eeba8af0ddc506abd6dc6dc09538d7905142b..99322e8dceb3e410ca94c2ba8f0ca91a7d07dd83 100644 --- a/typo3/sysext/form/Resources/Public/JavaScript/Backend/FormEditor/StageComponent.js +++ b/typo3/sysext/form/Resources/Public/JavaScript/Backend/FormEditor/StageComponent.js @@ -455,10 +455,10 @@ define(['jquery', */ function setStageHeadline(title) { if (getUtility().isUndefinedOrNull(title)) { - title = buildTitleByFormElement(); + title = buildTitleByFormElement().text(); } - $(getHelper().getDomElementDataIdentifierSelector('stageHeadline')).html(title); + $(getHelper().getDomElementDataIdentifierSelector('stageHeadline')).text(title); }; /** @@ -923,10 +923,10 @@ define(['jquery', getHelper() .getTemplatePropertyDomElement('_type', template) - .append(getFormElementDefinition(formElement, 'label')); + .append(document.createTextNode(getFormElementDefinition(formElement, 'label'))); getHelper() .getTemplatePropertyDomElement('_identifier', template) - .append(formElement.get('identifier')); + .append(document.createTextNode(formElement.get('identifier'))); }; /** @@ -971,7 +971,7 @@ define(['jquery', getHelper() .getTemplatePropertyDomElement('_label', rowTemplate) - .append(collectionElementConfiguration['label']); + .append(document.createTextNode(collectionElementConfiguration['label'])); $(getHelper().getDomElementDataIdentifierSelector('validatorsContainer'), $(template)) .append(rowTemplate.html()); } @@ -1031,7 +1031,7 @@ define(['jquery', } } - getHelper().getTemplatePropertyDomElement('_label', rowTemplate).append(label); + getHelper().getTemplatePropertyDomElement('_label', rowTemplate).append(document.createTextNode(label)); if (isPreselected) { getHelper().getTemplatePropertyDomElement('_label', rowTemplate).addClass(