-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add html
and head
tags into the whitelist.
#1520
Comments
Looks like this comment is 10-years old and obsolete. So is there is no way to include out-of-body tags into the process? Pretty critical in my case. |
I was trying to reimplement your issue, could you please share url of the html? |
|
Hello, I just made some modifications to the static method clean to solve the problem you mentioned. Here is my solution for your reference.
to
Because that's what causes the head and body to blend together. |
Thanks, I'll check it later, but as far as I remember - it is not enough. You can check my PR for reference. |
I have found the following comment in the code on the
Whitelist
class:And was trying to allow the
html/head/meta
tags to be included into the result with code like this:Unfortunately, what I get from this is a code wrapped into
<body>
tag with tags like<style>
moved inside the body.The text was updated successfully, but these errors were encountered: