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
In some HTML manipulation tasks, you need to create a copy of a node without deleting the original.
For example, if you are making a page ToC, you need to take the content of the original <h*> tag and insert it into a link to that header. Now if you do let e = Soup.select_one "someselector" in Soup.append_child e p, e will be moved to p.
Unless I'm missing something, there's no way to do it now other than to convert a node to string and then parse it back.
The text was updated successfully, but these errors were encountered:
In some HTML manipulation tasks, you need to create a copy of a node without deleting the original.
For example, if you are making a page ToC, you need to take the content of the original
<h*>
tag and insert it into a link to that header. Now if you dolet e = Soup.select_one "someselector" in Soup.append_child e p
,e
will be moved top
.Unless I'm missing something, there's no way to do it now other than to convert a node to string and then parse it back.
The text was updated successfully, but these errors were encountered: