How can I format my content, the same as the user enter in the site, in a email?
CHtml::encode ?
Everything that the user enter in a textarea, will be place on 1 line in my email. So Yii doesnt look at <br />'s
How can I fix that?
How can I format my content, the same as the user enter in the site, in a email?
CHtml::encode ?
Everything that the user enter in a textarea, will be place on 1 line in my email. So Yii doesnt look at <br />'s
How can I fix that?
Some examples of sending html emails in this post -
Ok but he makes a HTML mail with HTML tags. I want that my entered text be transformed to a HTML text
So you want to transform for example a \n into a <br> ?
Idd!
have you tried nl2br function like
nl2br(CHtml::encode($someAttribute))
or something like this…
hope it helps!
Thx will look for it