Skip to content

Commit

Permalink
Use h() in the example of tags.ctp
Browse files Browse the repository at this point in the history
  • Loading branch information
chinpei215 committed Jan 30, 2017
1 parent 76310d2 commit 72b5c7a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions en/tutorials-and-examples/bookmarks/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ put the following content::

<h1>
Bookmarks tagged with
<?= $this->Text->toList($tags) ?>
<?= $this->Text->toList(h($tags)) ?>
</h1>

<section>
Expand All @@ -407,7 +407,7 @@ put the following content::
<small><?= h($bookmark->url) ?></small>

<!-- Use the TextHelper to format text -->
<?= $this->Text->autoParagraph($bookmark->description) ?>
<?= $this->Text->autoParagraph(h($bookmark->description)) ?>
</article>
<?php endforeach; ?>
</section>
Expand Down
4 changes: 2 additions & 2 deletions fr/tutorials-and-examples/bookmarks/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ Construisons donc le fichier de vue pour notre action ``tags()``. Dans

<h1>
Bookmarks tagged with
<?= $this->Text->toList($tags) ?>
<?= $this->Text->toList(h($tags)) ?>
</h1>

<section>
Expand All @@ -430,7 +430,7 @@ Construisons donc le fichier de vue pour notre action ``tags()``. Dans
<small><?= h($bookmark->url) ?></small>

<!-- Utilise le TextHelper pour formater le texte -->
<?= $this->Text->autoParagraph($bookmark->description) ?>
<?= $this->Text->autoParagraph(h($bookmark->description)) ?>
</article>
<?php endforeach; ?>
</section>
Expand Down
4 changes: 2 additions & 2 deletions ja/tutorials-and-examples/bookmarks/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ Finder メソッドは、常に :doc:`/orm/query-builder` オブジェクトと

<h1>
Bookmarks tagged with
<?= $this->Text->toList($tags) ?>
<?= $this->Text->toList(h($tags)) ?>
</h1>

<section>
Expand All @@ -393,7 +393,7 @@ Finder メソッドは、常に :doc:`/orm/query-builder` オブジェクトと
<small><?= h($bookmark->url) ?></small>

<!-- Use the TextHelper to format text -->
<?= $this->Text->autoParagraph($bookmark->description) ?>
<?= $this->Text->autoParagraph(h($bookmark->description)) ?>
</article>
<?php endforeach; ?>
</section>
Expand Down
4 changes: 2 additions & 2 deletions pt/tutorials-and-examples/bookmarks/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,15 @@ vamos construir o arquivo view para a nossa ação ``tags``. Em

<h1>
Bookmarks tagged with
<?= $this->Text->toList($tags) ?>
<?= $this->Text->toList(h($tags)) ?>
</h1>

<section>
<?php foreach ($bookmarks as $bookmark): ?>
<article>
<h4><?= $this->Html->link($bookmark->title, $bookmark->url) ?></h4>
<small><?= h($bookmark->url) ?></small>
<?= $this->Text->autoParagraph($bookmark->description) ?>
<?= $this->Text->autoParagraph(h($bookmark->description)) ?>
</article>
<?php endforeach; ?>
</section>
Expand Down
4 changes: 2 additions & 2 deletions tr/tutorials-and-examples/bookmarks/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ içerikleri izleyiniz::

<h1>
Bookmarks tagged with
<?= $this->Text->toList($tags) ?>
<?= $this->Text->toList(h($tags)) ?>
</h1>

<section>
Expand All @@ -394,7 +394,7 @@ içerikleri izleyiniz::
<small><?= h($bookmark->url) ?></small>

<!-- TextHelper kullanarak text'in formatını ayarlayın-->
<?= $this->Text->autoParagraph($bookmark->description) ?>
<?= $this->Text->autoParagraph(h($bookmark->description)) ?>
</article>
<?php endforeach; ?>
</section>
Expand Down

0 comments on commit 72b5c7a

Please sign in to comment.