Skip to content
Snippets Groups Projects
Commit 1c4a5044 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

feat: set podcast / episode description in the pages description meta tag

strip html tags from description_html attributes to generate text only description

closes #44
parent 4d3e9c8c
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,9 @@
<head>
<meta charset="UTF-8"/>
<title><?= $episode->title ?></title>
<meta name="description" content="Castopod is an open-source hosting platform made for podcasters who want engage and interact with their audience."/>
<meta name="description" content="<?= strip_tags(
$episode->description_html
) ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
<link rel="stylesheet" href="/assets/index.css"/>
......
......@@ -6,7 +6,9 @@
<head>
<meta charset="UTF-8"/>
<title><?= $podcast->title ?></title>
<meta name="description" content="Castopod is an open-source hosting platform made for podcasters who want engage and interact with their audience."/>
<meta name="description" content="<?= strip_tags(
$podcast->description_html
) ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
<link rel="stylesheet" href="/assets/index.css"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment