Topic: [SOLVED] Attributes being stripped of their values
I just started using htmLawed 1.1.9.1 and it looks great so far. I'm having trouble specifying the allowed attributes though.
$config = array('safe'=>1,
'tidy'=>1,
'deny_attribute'=>'* -style -href -target',
'schemes'=>'style: *; href: *; target: *');
$title = htmLawed($filteredInput['title'],$config);
$text = htmLawed($_POST['text'],$config);If I'm not mistaken, these $config options should allow only the attributes: 'style', 'href', or 'target' and it should allow any value.
When it runs it does allow these attributes, but it replaces any attribute value with "\"
e.g.
before: style="background: red"
after: style="\"
What am I doing wrong?