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

@@ -60,7 +60,7 @@
*/ */
?> ?>
<a class="logo" href="<?= $site->url() ?>"> <a class="logo" href="<?= $site->url() ?>">
<?= $site->title() ?> <?= $site->title()->html() ?>
</a> </a>
<nav class="menu"> <nav class="menu">

View File

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

View File

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

View File

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