Closed
Description
Preconditions (*)
- Magento 2.2.6, , ,
- Unix Ubuntu 16.04.5 LTS
- php 7.0.30
- mysql 5.7.24
Steps to reproduce (*)
- install magento 2.2.6 with sample data
- add any translation (eg German) with the entry: "Email:,E-Mail:,,"
Set shop-> config->catalog->"Email to a friend" -> yes - call a Product -> Email to a Friend
Expected result (*)
- all labels should been shown right
Actual result (*)
- Label "E-Mail" of the invieder is shown wrong like -> "E\u002dMail"
Fixing the issue (*)
/vendor/magento/module-send-friend/view/frontend/templates/send.phtml
remove "escapeJs" in line 34 :
<label for="recipients-email<%- data._index_ %>" class="label"><span><?= $block->escapeJs($block->escapeHtml(__('Email'))) ?></span></label>
change to:
"<label for="recipients-email<%- data._index_ %>" class="label"><span><?= $block->escapeHtmlAttr(__('Email')) ?></span></label>"