I just discovered a very strange bug. If I have a “<” (less-than) character followed by any non-white character, then the grid ignores everything after and including the “<” character. For example, let’s say my text is “Hello world <1 blah blah”. Then the grid will only insert “Hello world ” into the database.
My column is defined as:
$col = array(); $col["title"] = "Notes"; $col["name"] = "Notes"; $col["dbname"] = 's.Notes'; $col["editable"] = true; $col["editable"] = true; $col["edittype"] = "textarea"; $col["width"] = "400px"; $col["editoptions"] = array("rows"=>"25", "cols"=>"100",); $col["visible"] = "sm+"; $cols[] = $col; Has this been reported before?
1 Answers
Your Answer
Btw, the “Notes” column is declared as “longtext” in the db.
Oh…. I think I see the probleem here. It looks lke gridphp is treating “<3" as an html tag (although it was meant to be less-than 3").
Setting $col[“sanitize”] = false; appears to fix this issue.