Don't use direct string manipulation for DOM parsing; use DOM manipulation methods such as jQuery's `.children()` or native `.children` and work from there.