| @@ 123-127 (lines=5) @@ | ||
| 120 | $nextSiblings = $nodes->nextAll(); |
|
| 121 | ||
| 122 | $content = []; |
|
| 123 | foreach (['p', 'ul'] as $tag) { |
|
| 124 | if (count($filtered = $nextSiblings->filter($tag))) { |
|
| 125 | $content[] = sprintf('<%1$s>%2$s</%1$s>', $tag, $filtered->first()->html()); |
|
| 126 | } |
|
| 127 | } |
|
| 128 | ||
| 129 | if ($content) { |
|
| 130 | $releaseNote[$key] = $this->htmlConverter->convert(implode('<br>', $content)); |
|
| @@ 210-214 (lines=5) @@ | ||
| 207 | $nodes = $crawler->filter($id)->nextAll(); |
|
| 208 | ||
| 209 | $content = []; |
|
| 210 | foreach (['ol', 'p'] as $tag) { |
|
| 211 | if (count($filtered = $nodes->filter($tag))) { |
|
| 212 | $content[] = sprintf('<%1$s>%2$s</%1$s>', $tag, $filtered->first()->html()); |
|
| 213 | } |
|
| 214 | } |
|
| 215 | ||
| 216 | $info = str_replace(['**<', '>**'], '**', $this->htmlConverter->convert(implode('<br>', $content))); |
|
| 217 | ||