Hi
i have a form for comments and it work great with english and hebrew untill i add the filer Zend_Filter_HtmlEntities.
if i remove the filer i can send in hebrew but the i can use javascript in the form, so there is a security issue here.
i echoed the post variable with and without the filter:
without the hebrew is there.
with: instead of the hebrew i get all sorts of symbols.
the page charset is utf-8, and hebrew is displyed.
this is the implementation:
Code:
$htmlentities = new Zend_Filter_HtmlEntities();
$name = $htmlentities->filter($this->_request->getPost('name'));
$title = $htmlentities->filter($this->_request->getPost('title'));
$commentField=$htmlentities->filter($this->_request->getPost('comment'));
what am i doing wrong here?
best regards
ron