mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 19:15:34 +02:00
Updated the parameter type in getCleanedHTML (#2793)
Co-authored-by: Andy Miller <1084697+rhukster@users.noreply.github.com>
This commit is contained in:
committed by
Andy Miller
parent
98d0c760a9
commit
b850443090
@@ -190,10 +190,10 @@ class Truncator
|
||||
* Clean extra code
|
||||
*
|
||||
* @param DOMDocument $doc
|
||||
* @param DOMDocument $container
|
||||
* @param DOMNode $container
|
||||
* @return string
|
||||
*/
|
||||
private static function getCleanedHTML(DOMDocument $doc, $container)
|
||||
private static function getCleanedHTML(DOMDocument $doc, DOMNode $container)
|
||||
{
|
||||
while ($doc->firstChild) {
|
||||
$doc->removeChild($doc->firstChild);
|
||||
|
||||
Reference in New Issue
Block a user