2008年10月28日星期二

[fw-mvc] disable escaping on a Digit.editor elememt

 

Hi !

 

Can someone point me in the right direction on this:

I have a Zend_Dojo_Form with a digit.Editor element in it, I put some links in the content of the editor and when I try to save to the database all html elements are “escaped”.

I have tried the following:

 

$assessment is the editor element.

 

$assessement->setAttrib('escape',false);

 

and

 

 

$decorator = $assessment->getDecorator(‘Description’);

 

$decorator->setOption('escape', false);

 

 

Any help would be appreciated.

 

 

 

Jose

 

没有评论: