diff --git a/bundles/AdminBundle/Resources/public/js/pimcore/document/pages/settings.js b/bundles/AdminBundle/Resources/public/js/pimcore/document/pages/settings.js index f14c6d28513..3737778b115 100644 --- a/bundles/AdminBundle/Resources/public/js/pimcore/document/pages/settings.js +++ b/bundles/AdminBundle/Resources/public/js/pimcore/document/pages/settings.js @@ -79,8 +79,8 @@ pimcore.document.pages.settings = Class.create(pimcore.document.settings_abstrac var updateSerpPreview = function () { var metaPanel = this.layout.getComponent("metaDataPanel"); - var title = metaPanel.getComponent("title").getValue(); - var description = metaPanel.getComponent("description").getValue(); + var title = htmlspecialchars(metaPanel.getComponent("title").getValue()); + var description = htmlspecialchars(metaPanel.getComponent("description").getValue()); var truncate = function( text, n ){ if (text.length <= n) { return text; }