Skip to content

Commit

Permalink
escaping fields in SERP preview
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 authored and dvesh3 committed Mar 4, 2022
1 parent cef6fb5 commit 8ab06bf
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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; }
Expand Down

0 comments on commit 8ab06bf

Please sign in to comment.