php-simple-html-dom-parser icon indicating copy to clipboard operation
php-simple-html-dom-parser copied to clipboard

Text subnodes

Open CodeAndRun opened this issue 7 years ago • 1 comments

Is it possible to extract contents of first text node? I.e. string Hello in subtree

<div>
    Hello
    <strong>World!</strong>
</div>

CodeAndRun avatar Aug 20 '18 12:08 CodeAndRun

no, you cant. but you can use regex for that.

plonknimbuzz avatar Aug 23 '18 12:08 plonknimbuzz