-
Notifications
You must be signed in to change notification settings - Fork 142
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
Unexpected automatically added new lines #103
Comments
Sadly, this is being done by Nokogiri and isn't something Sanitize has control over. Sorry.
|
@RenWenshan I lied! Turns out there is a (fairly obscure) way Sanitize can control this. This'll be fixed in 3.0.0. |
I am still facing the similar issue with latest version 4.2.0
Am I missing anything here? |
@abhi-patel Is calling Sanitize.document('<html>Hello</html>', Sanitize::Config::RELAXED).strip
# => "<html><head></head><body>Hello</body></html>" |
Should be fine I guess. I just wanted to confirm if the response I am getting is correct or there are other options/flags to resolve this. |
After sanitizing, a one liner html string become a multiple line string, for example:
Can I pass some argument in to avoid this? I'd like to keep it one-liner.
The text was updated successfully, but these errors were encountered: