I am using dhtmlxGrid with filter but the problem is that the special characters in column are replaced with html code in the filter
index .php code:
mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setImagePath(“codebase/dhtmlxGrid/imgs/”);
mygrid.setSkin(“modern”);
mygrid.setHeader(“Business Service, Service, Service Description, Service Type, User CI”);
mygrid.setInitWidths(“200,*,200,300,100”);
mygrid.setColAlign(“left,left,left,left,left”);
mygrid.setColTypes(“txt,txt,txt,txt,txt”);
mygrid.attachHeader(“#select_filter,#text_filter,#select_filter,#select_filter,#text_filter”);
mygrid.setColSorting(“connector,connector,connector,connector,connector”);
mygrid.enableMultiline(true);
mygrid.init();
var source = “php/get_data.php”;
mygrid.loadXML(source);
get_data.php:
try {
$dbh = new PDO(“oci:dbname=boms10.world”, “aixboms_admin”, “aixboms”);
$grid = new GridConnector($dbh, “PDO”);
$grid->render_table(“MCK_SERVICE_CATALOG”, “OBJ_NO”, “BUSINESS_SERVICE,SERVICE,SERVICE_DESC,SERVICE_TYPE,USER_CI”);
} catch (PDOException $e) {
echo "Failed to obtain database handle - error: ". $e->getMessage();
}
see attached image. Please help.