You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thx for the great library, really helpful! I'm using it to create docs for my open source modules where I'm parsing markdown to html and then adding some customisations.
This has worked very well so far, but now I'm hitting some roadblocks:
$crawler
->filter("p")
->each(function (HtmlPageCrawler$node) {
// this works$node->addClass("foobar");
// this does not work$node->replaceWith("<div>foobar</div>");
// this works$node->append("<div>test</div>");
});
append() works, but I'm actually trying to add some label markup like <div>my label</div> after every img and on image tags append() does obviously not work which is why I'm trying to use after() which unfortunately does also not work at all :(
Am I missing something?
The text was updated successfully, but these errors were encountered:
Not sure if that is a bug and it should automatically wrap "flat" html code in a root element to make sure that after() before() etc. are working? Or at least it would be nice to mention that in the docs :)
Thx for the great library, really helpful! I'm using it to create docs for my open source modules where I'm parsing markdown to html and then adding some customisations.
This has worked very well so far, but now I'm hitting some roadblocks:
append()
works, but I'm actually trying to add some label markup like<div>my label</div>
after everyimg
and on image tagsappend()
does obviously not work which is why I'm trying to useafter()
which unfortunately does also not work at all :(Am I missing something?
The text was updated successfully, but these errors were encountered: