Topic: Removing script rather than converting to text
Hi,
First, thanks for this function. It is working very well for me. I have two questions.
1. Any script instead of being removed is becoming text so I see something like
<script>...........</script>
in the content.
Is there a configuration to get the entire script removed rather than converting it to text?
2. Is there any config to linkify URLs? Can the scrpt add the <a href=""> etc., to text that looks like www.htmlawed.com ?
My config is
$cleanedhtml=htmLawed($rawhtml,array('safe'=>1,'elements'=>'p,a,b,strong,h2,h3,h4,ol,ul,li,em,img,br,embed','balance'=>1,'anti_link_spam'=>array('`.`',""),'anti_mail_spam'=>'__at__','comment'=>1,'schemes'=>'href: http','clean_ms_char'=>1,'deny_attribute'=>'class,style,on*,id,script'),'a=-*,href,title;img=height(minval/1),width(maxval=480/minval=1)');
Thanks in advance.