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
No. pup only selects and outputs existing HTML. It's also pretty much abandoned, so I wouldn't hope for enhancements at this point.
You probably need something like XMLStarlet instead. It's even older than pup, and it's really intended for XML manipulation, but it should work OK with HTML that's not completely sloppy.
Is it possible to use pup to add HTML elements under a particular node?
Say I need to add under 'html > head'
The text was updated successfully, but these errors were encountered: