Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.5

Request #2410 turn htmlspcialchars on/off
Submitted: 2004-09-28 15:51 UTC
From: sw at knollwimmer dot de Assigned: avb
Status: Closed Package: HTML_Common
PHP Version: 4.3.2 OS: Linux
Roadmaps: (Not assigned)    

 [2004-09-28 15:51 UTC] sw at knollwimmer dot de
Description: ------------ I am working with QF and smarty on a UTF8-based multilingual site. As I am trying to implement various input fields in a CMS I ran into troubles with the Arabic language. The automatic htmlspechialchars in html_common messes up the UTF-8 Arabic string when reloaded from the database. It would be great to be able to pass an additional parameter to QF to prevent the auto escaping for specific form elements. Thank you and greets, Stefan


 [2004-09-28 16:40 UTC] avb
Request has little to do with QuickForm itself, moving to HTML_Common. The better solution will be not to switch htmlspecialchars() off, but to pass charset parameter to it.
 [2005-03-20 17:01 UTC] herojoker at nexgo dot de
Hi! I'd like to see such a feature, too. Passing the charset would be ideal. Hero Wanders P.S.: Is this project still alive?
 [2006-10-08 14:15 UTC] avb (Alexey Borzov)
Implemented in release 1.2.3: there is now a static charset() method that can be used for controlling htmlspecialchars() behaviour. HTML_Common::charset('utf-8'); // continue working with HTML_Common-based code...