Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Escape html from site.title and page.title #4307
In the Front Matter Variables documentation https://jekyllrb.com/docs/variables/, the title is defined as
which does not mention HTML-escaping the string. This implies that escaping/encoding would be the responsibility of downstream.
This is also consistent with the XML outputting: https://github.com/jekyll/jekyll/blob/2807b8a012ead8b8fe7ed30f1a8ad1f6f9de7ba4/lib/site_template/feed.xml
This PR updates Jekyll HTML output to be consistent with documentation and other code and also enforcing a separation of content and presentation.