Client on ExtJS on PHP and MySQL server. Problem in textarea. An object:

'field' => array ( 'type' => '', 'unique' => '', 'db_isNull' => true, 'required' => false, 'validator' => '', 'db_type' => 'longtext', 'db_default' => false, 'is_search' => false, 'allow_html' => false, ), 

When you enter text with the symbol < and save, only what is standing in front of <is recorded. Changed allow_html = true does not help. Who can tell?

2 answers 2

Converts special characters to HTML entities: http://php.net/manual/ru/function.htmlspecialchars.php

    Before requesting the addition of data, wrap it with mysql_real_escape_string($var)