@@ -142,7 +142,7 @@ |
||
| 142 | 142 | * Extracts script tag contents using regex instead of DOM operations. |
| 143 | 143 | * If we parse using DOM, some contents may change, for example, tags within strings will be stripped |
| 144 | 144 | * |
| 145 | - * @param $string |
|
| 145 | + * @param string $string |
|
| 146 | 146 | * @return bool|string |
| 147 | 147 | */ |
| 148 | 148 | protected static function extractScriptTag($string) |
@@ -92,6 +92,9 @@ |
||
| 92 | 92 | return $dom->saveXML(); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | + /** |
|
| 96 | + * @param string $name |
|
| 97 | + */ |
|
| 95 | 98 | protected static function createTextNode(DOMDocument $dom, $name, $string) |
| 96 | 99 | { |
| 97 | 100 | $node = $dom->createElement($name); |