diff options
author | EuAndreh <eu@euandre.org> | 2020-02-08 17:33:03 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-02-08 17:33:03 -0300 |
commit | b28d04c2e6a29ff8c9529c19f4cbdbd18821970a (patch) | |
tree | 78a6c8731a66492fe366a26fd738e3cc1d26f7dc | |
parent | TODOs.org (diff) | |
download | euandre.org-b28d04c2e6a29ff8c9529c19f4cbdbd18821970a.tar.gz euandre.org-b28d04c2e6a29ff8c9529c19f4cbdbd18821970a.tar.xz |
Escape HTML title in meta tag
Avoid errors with quotes in page titles
Diffstat (limited to '')
-rw-r--r-- | _layouts/default.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_layouts/default.html b/_layouts/default.html index 109d408..ef83427 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -11,7 +11,7 @@ <meta property="og:site_name" content="{{ site.title }}" /> <meta name="author" content="{{ site.author.name }}" /> <meta property="og:locale" content="{{ page.lang }}" /> - <meta property="og:title" content="{{ page.title }}" /> + <meta property="og:title" content="{{ page.title | xml_escape }}" /> <link rel="canonical" href="{{ page.url | absolute_url }}" /> <meta property="og:url" content="{{ page.url | absolute_url }}" /> |