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 '¨ / ' and so on. Need kind of htmlentities!
[Edit] Maybe a theme problem?
- Plain yoghurt does have this issue too!
Thankx for any helpful suggestions!
[Edit] Maybe a theme problem?
- Plain yoghurt does have this issue too!
Thankx for any helpful suggestions!
Type: | Discussion |
---|---|
Status: | New |
Hi habinho!
Yeahhh! You made my day - it works!
Do we have to make a BUG-Report?
Greetings from switzerland
Yeahhh! You made my day - it works!
Do we have to make a BUG-Report?
Greetings from switzerland
ok, I will try it. ... Done.
Greetings from switzerland too ;)
Greetings from switzerland too ;)
Just add the attribute html="true" to the <field /> element in your Data Display template.
Thx. code hacking is never a good solution, but I didn't found the attribute in the docs.
<field name="my_WYSIWYG_field" html="true" />
=> It works! Thankx for this!
Do You have some more "special" attributes?
Yeah, I updated the doc's to reflect some recently added new elements/attributes. Newly added attributes include html, property, separator, striptags, allowedtags.
(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