Skip to content
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

Is there a way to strip all inline styles? #74

Closed
JoeCotellese opened this issue Jan 29, 2017 · 2 comments · Fixed by #76
Closed

Is there a way to strip all inline styles? #74

JoeCotellese opened this issue Jan 29, 2017 · 2 comments · Fixed by #76

Comments

@JoeCotellese
Copy link

Hi,

I'm trying to figure out if there is a way to strip all inline styles? I'm debating whether I should fork and add functionality here or post process on the HTML after running through graby.

Joe

@j0k3r
Copy link
Owner

j0k3r commented Jan 29, 2017

Hello Joe,

There can be multiple way to remove inline style. But it depends on the behavior you want.

First, you can use a siteconfig to remove inline style for a custom domain. If the problem is related to one domain.

Second, if you always want to remove inline style you can use Readability to add pre or post filters that aim to handle that (sth like this one). Right now we can't add pre / post filters directly in graby. I should add this configuration, it could add a really great value.

I should add that inline style might already get remove in Readability. But Readability also add it owns inline style for foot notes.

@JoeCotellese
Copy link
Author

Thanks for making the change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants