Use html method

This commit is contained in:
sonja
2020-12-13 13:13:20 +01:00
committed by Bastian Allgeier
parent 0b9ca1d05c
commit eabce32cf0
4 changed files with 6 additions and 6 deletions

View File

@@ -21,7 +21,7 @@
<?php snippet('header') ?>
<article>
<h1 class="h1"><?= $page->title() ?></h1>
<h1 class="h1"><?= $page->title()->html() ?></h1>
<div class="text">
<?= $page->text()->kt() ?>
</div>

View File

@@ -48,7 +48,7 @@
<?php endif ?>
<figcaption>
<span>
<span class="example-name"><?= $album->title() ?></span>
<span class="example-name"><?= $album->title()->html() ?></span>
</span>
</figcaption>
</figure>

View File

@@ -31,9 +31,9 @@
<article class="note">
<header class="note-header h1">
<h1 class="note-title"><?= $page->title() ?></h1>
<h1 class="note-title"><?= $page->title()->html() ?></h1>
<?php if ($page->subheading()->isNotEmpty()): ?>
<p class="note-subheading"><small><?= $page->subheading() ?></small></p>
<p class="note-subheading"><small><?= $page->subheading()->html() ?></small></p>
<?php endif ?>
</header>
<div class="note text">
@@ -44,7 +44,7 @@
<ul class="note-tags">
<?php foreach ($tags as $tag): ?>
<li>
<a href="<?= $page->parent()->url(['params' => ['tag' => $tag]]) ?>"><?= $tag ?></a>
<a href="<?= $page->parent()->url(['params' => ['tag' => $tag]]) ?>"><?= html($tag) ?></a>
</li>
<?php endforeach ?>
</ul>