<commit_before>module TextWithLinksHelper

  def text_with_links(text)
    return unless text
    sanitized = sanitize text
    Rinku.auto_link(sanitized, :all, 'target="_blank" rel="nofollow"').html_safe
  end

end<commit_msg>accepts no html tags in text_with_links sanitize<commit_after>module TextWithLinksHelper

  def text_with_links(text)
    return unless text
    sanitized = sanitize text, tags: [], attributes: []
    Rinku.auto_link(sanitized, :all, 'target="_blank" rel="nofollow"').html_safe
  end

end
{'fraction_non_alphanumeric': 0.0970873786407767, 'fraction_numerical': 0.0, 'mean_word_length': 5.216867469879518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '914389', 'n_tokens_mistral': 174, 'n_tokens_neox': 171, 'n_words': 39}