-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Hello, i need to get from html what is in the head and what is in the body but if i have a script or a style defined inside a body element it is returned has part of the head element and this is causing crashes to my web application.
es:
<html>
<body>
<script>console.log("script")</script>
<p>!Text!</p>
</body>
</html>script elements is returned with selector $('head') but it doesn't belong to it!!!
Any help really appreciated!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels