lib/onebox/sanitize_config.rb in onebox-1.8.22 vs lib/onebox/sanitize_config.rb in onebox-1.8.23
- old
+ new
@@ -28,10 +28,10 @@
lambda do |env|
next unless env[:node_name] == 'a'
a_tag = env[:node]
a_tag['href'] ||= '#'
if a_tag['href'] =~ %r{^(?:[a-z]+:)?//}
- a_tag['rel'] = 'nofollow noopener'
+ a_tag['rel'] = 'nofollow noopener'
else
a_tag.remove_attribute('target')
end
end
],