{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/2026","labels_url":"https://api.github.com/repos/jekyll/jekyll/issues/2026/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll/issues/2026/comments","events_url":"https://api.github.com/repos/jekyll/jekyll/issues/2026/events","html_url":"https://github.com/jekyll/jekyll/issues/2026","id":27217213,"number":2026,"title":"Encoding html entities?","user":{"login":"mhulse","id":218624,"avatar_url":"https://avatars.githubusercontent.com/u/218624?v=3","gravatar_id":"","url":"https://api.github.com/users/mhulse","html_url":"https://github.com/mhulse","followers_url":"https://api.github.com/users/mhulse/followers","following_url":"https://api.github.com/users/mhulse/following{/other_user}","gists_url":"https://api.github.com/users/mhulse/gists{/gist_id}","starred_url":"https://api.github.com/users/mhulse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhulse/subscriptions","organizations_url":"https://api.github.com/users/mhulse/orgs","repos_url":"https://api.github.com/users/mhulse/repos","events_url":"https://api.github.com/users/mhulse/events{/privacy}","received_events_url":"https://api.github.com/users/mhulse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jekyll/jekyll/labels/Question","name":"Question","color":"9713f5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2014-02-09T05:53:26Z","updated_at":"2015-01-02T17:49:01Z","closed_at":"2014-02-09T23:45:32Z","body":"Here's the scenario:\r\n\r\n```html\r\n<meta property=\"og:title\" content=\"{{ page.title }} | {{ site.title }}\">\r\n```\r\n\r\nUsing the above code, I'll run into problems if the title has double quotes.\r\n\r\nThe fix I've been using is to:\r\n\r\n```html\r\n <meta property=\"og:title\" content=\"{{ page.title | markdownify | strip_html | trim }} | {{ site.title }}\">\r\n```\r\n\r\nThe above works, but it just seems a little verbose.\r\n\r\nI tried the liquid `escape_once` filter with no results.\r\n\r\nI've been tempted to use the XML escape filters, but this isn't XML.\r\n\r\nHow do the pros handle this?\r\n\r\nIs there any way to automatically have all of my titles converted to entities without me having to do anything on the template level?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll/issues/comments/68546034","html_url":"https://github.com/jekyll/jekyll/issues/2026#issuecomment-68546034","issue_url":"https://api.github.com/repos/jekyll/jekyll/issues/2026","id":68546034,"user":{"login":"adammichaelwood","id":1776241,"avatar_url":"https://avatars.githubusercontent.com/u/1776241?v=3","gravatar_id":"","url":"https://api.github.com/users/adammichaelwood","html_url":"https://github.com/adammichaelwood","followers_url":"https://api.github.com/users/adammichaelwood/followers","following_url":"https://api.github.com/users/adammichaelwood/following{/other_user}","gists_url":"https://api.github.com/users/adammichaelwood/gists{/gist_id}","starred_url":"https://api.github.com/users/adammichaelwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adammichaelwood/subscriptions","organizations_url":"https://api.github.com/users/adammichaelwood/orgs","repos_url":"https://api.github.com/users/adammichaelwood/repos","events_url":"https://api.github.com/users/adammichaelwood/events{/privacy}","received_events_url":"https://api.github.com/users/adammichaelwood/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T17:49:01Z","updated_at":"2015-01-02T17:49:01Z","body":"kramdown"}}