diff options
author | Aurélien Tamisier <virtualtam+github@flibidi.net> | 2019-01-21 10:54:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-21 10:54:30 +0100 |
commit | 586a9e006520faab98e08302434284560d02fd06 (patch) | |
tree | 2506cc57c88e1c725860d2f557e9655d6099008b /tpl/default/includes.html | |
parent | ff3b5dc5542ec150f0d9b447394364a15e9156d0 (diff) | |
parent | 49106a5d8cf1153b5da23f889d15e46fa480e7cc (diff) | |
download | Shaarli-586a9e006520faab98e08302434284560d02fd06.tar.gz Shaarli-586a9e006520faab98e08302434284560d02fd06.tar.zst Shaarli-586a9e006520faab98e08302434284560d02fd06.zip |
Merge pull request #1259 from virtualtam/fix/render/strip-opengraph-description
fix: ensure HTML tags are stripped from OpenGraph description
Diffstat (limited to 'tpl/default/includes.html')
-rw-r--r-- | tpl/default/includes.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/default/includes.html b/tpl/default/includes.html index 0427e224..6c30d1bf 100644 --- a/tpl/default/includes.html +++ b/tpl/default/includes.html | |||
@@ -21,7 +21,7 @@ | |||
21 | <meta property="og:type" content="article" /> | 21 | <meta property="og:type" content="article" /> |
22 | <meta property="og:url" content="{$index_url}?{$link.shorturl}" /> | 22 | <meta property="og:url" content="{$index_url}?{$link.shorturl}" /> |
23 | {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description} | 23 | {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description} |
24 | <meta property="og:description" content="{function="substr($ogDescription, 0, 300)"}" /> | 24 | <meta property="og:description" content="{function="substr(strip_tags($ogDescription), 0, 300)"}" /> |
25 | {if="$link.thumbnail"} | 25 | {if="$link.thumbnail"} |
26 | <meta property="og:image" content="{$index_url}{$link.thumbnail}" /> | 26 | <meta property="og:image" content="{$index_url}{$link.thumbnail}" /> |
27 | {/if} | 27 | {/if} |