Skip to content

Commit

Permalink
Merge pull request #769 from UN-OCHA/berliner/HPC-9255
Browse files Browse the repository at this point in the history
HPC-9255: Fix edge case issue with empty article paragraphs if the CM instance sends HTML with comments in it
  • Loading branch information
berliner authored Oct 26, 2023
2 parents 9acd341 + af0c601 commit eda5c09
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public static function updateFootnotes($html, $build) {
foreach (iterator_to_array($dom->getElementsByTagName('gho-footnotes-text')) as $node) {
$id = $node->getAttribute('data-id');
$node_inner_html = gho_footnotes_get_inner_html($node);
$node_inner_html = preg_replace('/<!--(.|\s)*?-->\s*/', '', $node_inner_html);

// Extract references.
$references = gho_footnotes_extract_references($node_inner_html);
Expand Down

0 comments on commit eda5c09

Please sign in to comment.