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?

link|improve this question
feedback

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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