File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def title
47
47
end
48
48
49
49
def description
50
- @desc ||= exists? ? self . content . lines . reject { | l | l =~ /^( \n |<)/ } . second . delete ( '<br>' ) . strip : ''
50
+ @desc ||= exists? ? self . content . lines . fourth : ''
51
51
end
52
52
53
53
def published_at
Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ xml.rss :version => "2.0", "xmlns:itunes" => "http://www.itunes.com/dtds/Podcast
23
23
end
24
24
25
25
@episodes . each do |episode |
26
- description = Kramdown ::Document . new ( episode . description , input : 'GFM' ) . to_html
26
+ description = ActionView :: Base . full_sanitizer . sanitize ( Kramdown ::Document . new ( episode . description , input : 'GFM' ) . to_html ) . strip
27
27
xml . item do
28
28
xml . title episode . title
29
29
xml . author @author
30
30
xml . itunes :image , @art_work_url
31
- xml . content :encoded , :text => CGI . escapeHTML ( description )
32
- xml . description ActionView :: Base . full_sanitizer . sanitize ( description ) . strip
31
+ xml . content :encoded , :text => description
32
+ xml . description description
33
33
xml . link "#{ @base_url } #{ episode . url } "
34
34
xml . guid ( { :isPermaLink => "false" } , "#{ @base_url } #{ episode . url } " )
35
35
xml . itunes :explicit , "clean"
You can’t perform that action at this time.
0 commit comments