Topic: $spec doesnt work at all ?
$config = array(
'safe'=>1, // Dangerous elements and attributes thus not allowed
'elements'=>'* -table -tr -td -th -tfoot -thead -col -colgroup -caption', // All except table-related are OK
'deny_attribute'=>'class, id, style' // None of the allowed elements can have these attributes
);
$spec = 'a = title, href;' // The 'a' element can have only these attributes
// The filtering
$out = htmLawed($in, $config, $spec);
im just using the example code in your page.
$spec = 'a = title, href;'
but it doesnt ignore other attributes at all.
I just used spec like above but I can use name,id.
I want it to remove all except title and href, so what to do ?
Sorry for topic ;\