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

Set HTML as "safe" #14

Merged
merged 1 commit into from
Jul 15, 2018
Merged

Set HTML as "safe" #14

merged 1 commit into from
Jul 15, 2018

Conversation

codesections
Copy link
Contributor

This pull request suggests using the safe Tera filter to so that the HTML will display properly on the home page rather than having the home page display escaped HTML tags.

This commit uses the `safe` Tera filter to so that the HTML will display
properly on the home page rather than having the home page display
escaped HTML tags.
@piedoom piedoom merged commit c65df7e into piedoom:master Jul 15, 2018
@piedoom
Copy link
Owner

piedoom commented Jul 15, 2018

Thanks! I appreciate the contrib.

@piedoom
Copy link
Owner

piedoom commented Jul 15, 2018

Oops! I forgot to mention that safe and striptags both need to be present for HTML stripping to occur. I didn't properly check and it actually will render then HTML (which is not what it should do for the sake of consistency)

image

I've documented my confusion here - getzola/zola#286 - but it seems like a wontfix

@piedoom
Copy link
Owner

piedoom commented Jul 15, 2018

Fixed it! Again, thanks for making the contrib. I've been meaning to fix this and your help pushed me to finally get off my ass and do it.

@codesections
Copy link
Contributor Author

codesections commented Jul 15, 2018 via email

@piedoom
Copy link
Owner

piedoom commented Jul 16, 2018

Oh that's an awesome idea! If you ever need any assistance I'd be happy to help.

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

Successfully merging this pull request may close these issues.

2 participants