Disable html escaping in Yii::t params

I’ve got a translatated message with placeholders which contain html tags.

The problem is that Yii escapes the html so it is treated like text.

Is there a way to disable the escaping of the placeholders?

Here is the code i use:


‘message’, ‘You are not logged in. {loginBegin}Login{loginEnd}.’,


'{loginBegin}' => '<span onclick="show(\'login-form\')">',

'{loginEnd}' => '</span>'



Is not Yii::t that escape the placeholder, maybe is some other function, like CHtml::encode or maybe you are using some widget that escapes.

Problem solved, I was looking in the wrong direction, thanks zaccaria. In jQuery I used text() instead of html().