Hey everybody!
Topic says it, I want to do something like
$this->title = 'something — something';
But of course, the title gets included in main.php like
<title><?= Html::encode($this->title) ?></title>
so that
—
doesn’t actually yield an em dash, but exactly the characters ‘—’.
Now, I could just remove the ‘Html::encode()’, but that surely is not what I want to do, because of obvious reasons. Is there any elegant, safe way to achieve this?
Thanks in advance!
Christoph