Skip to content

Commit

Permalink
Fix Xliff12Escaper's unescapeXliff function to respect ph elements #1…
Browse files Browse the repository at this point in the history
…1900

Signed-off-by: dpahuja <divesh.pahuja@gmail.com>
  • Loading branch information
siwa-ddiesenreither authored and dvesh3 committed Apr 13, 2022
1 parent b08a5e4 commit 809851a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Translation/Escaper/Xliff12Escaper.php
Expand Up @@ -89,7 +89,7 @@ public function unescapeXliff(string $content): string
{
$content = $this->parseInnerXml($content);

if (preg_match("/<\/?(bpt|ept)/", $content)) {
if (preg_match("/<\/?(bpt|ept|ph)/", $content)) {
$xml = new Crawler($content);
$els = $xml->filter('bpt, ept, ph');
/** @var \DOMElement $el */
Expand Down

0 comments on commit 809851a

Please sign in to comment.