Intall the gem and call string.add_nofollow to add rel='nofollow' to all links inside the string
Leo
MIT