<commit_before>xml.instruct! :xml, :version => "1.0", :encoding=>"UTF-8"
xml.rss "version" => "2.0",
	"xmlns:wfw" => "http://wellformedweb.org/CommentAPI/" do
    xml.channel do
	xml.title {xml.cdata! @user.title }
	if request.domain == @site.domain
	    xml.link root_url :subdomain => @user.name
	else
	    xml.link root_url
	end
	xml.generator "Chito"
	xml.description {xml.cdata! @user.info } 

	@posts.each do |post|
	    xml.item do
		xml.title {xml.cdata! post.title}
		xml.link post_url(post, :format => :html) 
		if @user.rss_type == 'full'
		    xml.description do
			xml.cdata! rss_content(post.content.to_s)
		    end
		else
		    xml.description do
			    xml.cdata! rss_content(post.brief.html_safe)
		    end
		end
		(xml.category {xml.cdata! post.category.name}) if post.category
		xml.tag! 'wfw:commentRss', post_url(post, :format => :rss)
		xml.pubDate post.created_at.to_s(:rfc822)
		xml.guid post_url(post)
        xml.author @user.nick
	    end
	end
    end
end<commit_msg>fix escape bug<commit_after>xml.instruct! :xml, :version => "1.0", :encoding=>"UTF-8"
xml.rss "version" => "2.0",
	"xmlns:wfw" => "http://wellformedweb.org/CommentAPI/" do
    xml.channel do
	xml.title {xml.cdata! @user.title }
	if request.domain == @site.domain
	    xml.link root_url :subdomain => @user.name
	else
	    xml.link root_url
	end
	xml.generator "Chito"
	xml.description {xml.cdata! @user.info } 

	@posts.each do |post|
	    xml.item do
		xml.title {xml.cdata! post.title}
		xml.link post_url(post, :format => :html) 
		if @user.rss_type == 'full'
		    xml.description do
			xml.cdata! rss_content(post.content.to_s.html_safe)
		    end
		else
		    xml.description do
			    xml.cdata! rss_content(post.brief.html_safe)
		    end
		end
		(xml.category {xml.cdata! post.category.name}) if post.category
		xml.tag! 'wfw:commentRss', post_url(post, :format => :rss)
		xml.pubDate post.created_at.to_s(:rfc822)
		xml.guid post_url(post)
        xml.author @user.nick
	    end
	end
    end
end
{'fraction_non_alphanumeric': 0.14657328664332167, 'fraction_numerical': 0.0080040020010005, 'mean_word_length': 3.1666666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 52}, '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': '1764052', 'n_tokens_mistral': 829, 'n_tokens_neox': 768, 'n_words': 159}