Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I configured the Text Format "Plain text" (admin/config/content/formats) to "Convert URLs into links" so I would like to add the attribute rel="nofollow" to all the links in the comments.

This way I would minimize the effects of spammy links in the comments.

Is there an easier way than using regular expressions to insert the attribute?

share|improve this question

1 Answer

up vote 5 down vote accepted

Go to Configuration -> Content authoring -> Text formats -> Plain text (your format), then tick the Limit allowed HTML tags option.

In the filter settings at the bottom of the page is the Add rel="nofollow" to all links checkbox. Tick that... Since this is plain text, you will probably want to remove the contents of the Allowed HTML Tags field, too.

share|improve this answer
Oh my... that was easy. I should have seen that. – FR6 Dec 23 '11 at 18:24
It's not in the most intuitive of places, I must say... – Jim Kirkpatrick Dec 23 '11 at 18:26
very cool! I wasted about half an hour too looking at extlink and links_nofollow modules ;-) – MotoTribe Dec 23 '11 at 23:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.