Skip to content

Commit

Permalink
HPC-9255: Fix edge case issue with empty article paragraphs if the CM…
Browse files Browse the repository at this point in the history
… instance sends HTML with comments in it
  • Loading branch information
berliner committed Oct 26, 2023
1 parent 58e586a commit af0c601
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 af0c601

Please sign in to comment.