Skip to content

Commit

Permalink
Merge pull request #17 from arquivei/bugfix/BONDERS-1886
Browse files Browse the repository at this point in the history
Adiciona tratamento caso o campo infCpl ou infAdProd contenha a tag HTML de quebra de linha
  • Loading branch information
kairo-arquivei authored Jul 8, 2021
2 parents b291540 + 7af0570 commit 0cee159
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NFe/Danfe.php
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,8 @@ protected function anfaveaDANFE($cdata = '')
$cdata = str_replace(']]>', '</CDATA>', $cdata);
$cdata = preg_replace('/\s\s+/', ' ', $cdata);
$cdata = str_replace("> <", "><", $cdata);
$cdata = str_replace("<br />", ' ', $cdata);

$len = strlen($cdata);
$startPos = strpos($cdata, '<');
if ($startPos === false) {
Expand Down

0 comments on commit 0cee159

Please sign in to comment.