2022年5月7日解決済み

h() 関数を使用しないことがあるのはなぜですか?

ユーザー
<li>
  <input type="checkbox" <?= $todo->is_done ? 'checked' : ''; ?>>
  <span class="<?= $todo->is_done ? 'done' : ''; ?>">
    <?= h($todo->title); ?>
  </span>
</li>

こちらの input タグと span タグの中の $todo->is_done には h() 関数を使う必要がないのですか?

スタッフ

この回答を見るにはプレミアムプランへの登録が必要です

プレミアムプランとは?