scotteh/php-dom-wrapper

This is removing text using html() function, I think it's a bug

Closed this issue · 0 comments

Using this code

dump($p->html());

$result = $p->html();
$p->html($result);

dump($p->html());

I get this for the first dump:

"<strong>Cine lenses</strong> are a type of lens designed explicitly for videography and filmmaking. While they can also be used for photography, they are not as commonly used for this purpose. <strong>Cinema lenses</strong> are distinguished from regular camera lenses by their construction and features. They typically have a longer focus throw, which allows for more precise focusing, and a de-clicked aperture, which enables smoother transitions between different aperture settings. A Cine lens also typically have a more robust build quality, making them better suited for heavy use. While cine lenses can be used for photography, they are not necessarily the best option for every situation."

And this for the second:
"<strong>Cine lenses</strong><strong>Cinema lenses</strong>"

Is it me or a bug?