Skip to content

OliverCordingl1/jekyll-html-encode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jekyll-html-encode

Converts strings to HTML Escape Entity characters

Example

{{ 'Hello, World!' | encode_html }}

# ~> Hello, World!

Install

Install by putting the following into your Gemfile:

gem 'jekyll-html-encode'

Then, put the following into your _config.yml:

plugins:
- jekyll-email-protect

Why?

I made this to add a little extra obscurity for webscrapers looking to grab my email. I made it to use in conjunction with jekyll-email-protect.

It may not have much benefit at all, as it seems like modern browsers tend to just render the HTML Escape Entities as text in source anyway and I've not really had much a chance to test it, however I'd rather be safe than have a hundred thousand emails about my car's extended warranty or "magic pills" flooding my inbox when I publish my website.

About

Convert whole strings to HTML escape characters

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages