Record description is html-encoded twice

A place for users and developers of the Xataface to discuss and receive support.

Record description is html-encoded twice

Postby zefredz » Tue Mar 10, 2009 8:17 am

Hello,

First of all thanks for developing such a great framework ! Xataface is really a great RAD tool for PHP.

We are planning to use Xataface to implement some web applications in my university in Belgium but we have detected an issue : when displaying a record the description in the "dataface-view-description" div is html-encoded twice when the description field is a htmlarea widget.

The consequence is that "é" is encoded to "é" in the html code and thus displayed as "é" by the browser instead of "é".

The only way I found to avoid this is to change the configuration of FCKEditor in fckconfig.js :
Code: Select all
FCKConfig.ProcessHTMLEntities   = false ;


But it's probably not the best way to solve the problem.

Is it possible that the rendering code detect that the content of the database field used for the description in $rv->description (at line 149 of templates/Dataface_View_Record.html) is already encoded ?

Maybe it would be better not to html-encode the content of the field in the database ?

Do you have any idea ? Is it possible to solve this issue in a future release ?

Best Regards,
zefredz
 
Posts: 3
Joined: Tue Mar 10, 2009 7:49 am

Postby zefredz » Tue Mar 10, 2009 11:58 pm

Hello,

Since my English is not that good, here is a screenshot of the bug.

Best Regards,
zefredz
 
Posts: 3
Joined: Tue Mar 10, 2009 7:49 am

Postby shannah » Wed Mar 11, 2009 10:43 am

Thanks. Looks like a bug. I'll add this to the issue tracker to be fixed in a future version.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby zefredz » Thu Mar 12, 2009 12:04 am

OK

Thanks a lot
zefredz
 
Posts: 3
Joined: Tue Mar 10, 2009 7:49 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 9 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved