Skip to content

Commit 061b08b

Browse files
author
Oleksii Korshenko
authored
MAGETWO-86284: [Backport to 2.1-develop] Fix #10682: Meta description and keywords transform to html entities #12956
2 parents 0ff1534 + 51b0401 commit 061b08b

File tree

1 file changed

+2
-2
lines changed
  • lib/internal/Magento/Framework/View/Page

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/View/Page/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
3+
* Copyright © 2013-2018 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

@@ -226,7 +226,7 @@ public function getTitle()
226226
public function setMetadata($name, $content)
227227
{
228228
$this->build();
229-
$this->metadata[$name] = htmlentities($content);
229+
$this->metadata[$name] = htmlspecialchars($content);
230230
}
231231

232232
/**

0 commit comments

Comments
 (0)