Skip to content

Commit 51b0401

Browse files
committed
MAGETWO-86284: [Backport to 2.1-develop] Fix #10682: Meta description and keywords transform to html entities #12956
- Merge Pull Request #12956 from dverkade/magento2:2.1-Meta-description-and-keywords-transform-to-html-entities - Merged commits: 1. 85db3a0 2. 66d4d4e
2 parents 427d417 + 66d4d4e commit 51b0401

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)