Closed (fixed)
Project:
htmLawed
Version:
6.x-2.7
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 May 2010 at 20:07 UTC
Updated:
11 May 2010 at 02:27 UTC
Hi there,
at the moment i am using html purifier and i am thinking about to switch to htmlawed.
My short question: Is it possible and easy without any big hacking to add the rel attribute with nofollow to any links?
Thank you!
Comments
Comment #1
alpha2zee commentedIt's easy. Just set the ''anti_link_spam' directive: go to the configuration page for the Drupal htmLawed module to edit the right Config. form-field to make it something like
example
'safe'=>1, 'elements'=>'a, em, strong, cite, code, ol, ul, li, dl, dt, dd', 'deny_attribute'=>'id, style', 'valid_xhtml'=>1, 'anti_link_spam'=>array('`.`', '')With this, a rel="nofollow" will be aded to all 'a' elements. For other possibilities, please refer to the htmLawed documentation on anti_link_spam.
Comment #2
Witch commentedHi alpha2zee!
Thank you, i will try it and give you some feedback.
Have a nice day.
Comment #3
alpha2zee commented