Welcome Guest, Not a member yet? Register   Sign In
Why HTMLPurifier does not work in inktype
#6

[eluser]Déjà Vu[/eluser]
Ok, I change the version for PHP4

And see that the previous code does not work, so I decided to do the purify process to the model for get comments (mdl_comments.php)

Code:
function get() {

            $this->load->library('HTMLPurifier');
            $purifier_config = HTMLPurifier_Config::createDefault();
            $purifier_config->set('Core', 'Encoding', 'UTF-8'); // replace with your encoding
            $this->htmlpurifier->purify( $comment , $purifier_config );
            $comment = $clean_comment

But now I get this error

Code:
Parse error: syntax error, unexpected T_VARIABLE in /home/cienciasm/domains/cienciasmicrobiologicas.org/public_html/application/models/mdl_comments.php on line 38

At that line the code is:
Code:
$this->_prep_query();
        $query = $this->db->get("comments");

Why doesn`t works?
Please help me


Messages In This Thread
Why HTMLPurifier does not work in inktype - by El Forum - 12-19-2007, 02:02 AM
Why HTMLPurifier does not work in inktype - by El Forum - 12-19-2007, 04:54 PM
Why HTMLPurifier does not work in inktype - by El Forum - 12-19-2007, 05:45 PM
Why HTMLPurifier does not work in inktype - by El Forum - 12-19-2007, 08:05 PM
Why HTMLPurifier does not work in inktype - by El Forum - 12-19-2007, 08:08 PM
Why HTMLPurifier does not work in inktype - by El Forum - 12-19-2007, 11:57 PM
Why HTMLPurifier does not work in inktype - by El Forum - 12-20-2007, 08:09 AM
Why HTMLPurifier does not work in inktype - by El Forum - 12-20-2007, 10:14 AM
Why HTMLPurifier does not work in inktype - by El Forum - 12-20-2007, 10:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB