Problem with WYSIWYG field -> need htmlentities !

Permalink Browser Info Environment
What am i'm doing wrong? When i display my WYSIWYG field i see so many special caracters like '&uml /  ' and so on. Need kind of htmlentities!

[Edit] Maybe a theme problem?
- Plain yoghurt does have this issue too!

Thankx for any helpful suggestions!

Type: Discussion
Status: New
ottigerb
View Replies: View Best Answer
habinho replied on at Permalink Reply
habinho
This is not a definitive solution but should help for the moment:
(I had the same problem and for me it works fine)

1. look in the blocks-Folder of the datadisplay package. There are folders of your details templates.
2. open there view.php
at the bottom of the code after line ( } else { //Display detail template )
3. look for echo $detail;
and replace it with
4. echo htmlspecialchars_decode($detail);

kind regards habinho
ottigerb replied on at Permalink Reply
ottigerb
Hi habinho!

Yeahhh! You made my day - it works!

Do we have to make a BUG-Report?

Greetings from switzerland
habinho replied on at Permalink Reply
habinho
ok, I will try it. ... Done.

Greetings from switzerland too ;)
jgarcia replied on at Permalink Best Answer Reply
jgarcia
Just add the attribute html="true" to the <field /> element in your Data Display template.
habinho replied on at Permalink Reply
habinho
Thx. code hacking is never a good solution, but I didn't found the attribute in the docs.
ottigerb replied on at Permalink Reply
ottigerb
<field name="my_WYSIWYG_field" html="true" />


=> It works! Thankx for this!

Do You have some more "special" attributes?
jgarcia replied on at Permalink Reply
jgarcia
Yeah, I updated the doc's to reflect some recently added new elements/attributes. Newly added attributes include html, property, separator, striptags, allowedtags.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.