it seems like Yii uses the HtmlPurifier to get rid of <a target="_blank"> Tags in Textareas. Where can i change this behaviour, and allow my Application to render such dangerous Tags? I also would like to allow <object embed>…
You can set the ‘options’ property of CHtmlPurifier. It will be passed to the underlying HtmlPurifier. For more details about options, please refer to: http://htmlpurifier…gdoc/plain.html
OK, sorry if this question is too simple - i am still a Yii-Beginner:
It seems, like Yii is Purifying Html-Code application-wide. If i try to use an non-allowed HTML-Tag in an textfield like "post->content", Yii is always cutting it away. I did not set any HtmlPurifier-Widgets manually so far. There has to be a system-wide Setting for allowed and disallowed Tags, but i cannot find them.
For example, i write
<a href="www.google.de" target="_blank">
in the back-end of my Yii-Application. When i visit this Entry on the Frontend, the generated HTML-Code has cut the target=_blank away somehow…