```ruby
# Original source: http://www.slightlytallerthanaverageman.com/2010/02/22/jekyll-feedburner-and-global-urls/#comment-599796216

module Jekyll
  module FixRSS

    def fix_rss(input)
      input.gsub(/(?<href>href=('|"))\//, '\k<href>' + @context.registers[:site].config["url"] + '/')
           .gsub(/(?<src>src=('|"))\//, '\k<src>' + @context.registers[:site].config["url"] + '/')
           .gsub(/\sclass=['"][^'"]*['"]/, '')
    end

  end
end

Liquid::Template.register_filter(Jekyll::FixRSS)
```

Remove any `data-` attributes too.
user
```ruby
# Original source: http://www.slightlytallerthanaverageman.com/2010/02/22/jekyll-feedburner-and-global-urls/#comment-599796216

module Jekyll
  module FixRSS

    def fix_rss(input)
      input.gsub(/(?<href>href=('|"))\//, '\k<href>' + @context.registers[:site].config["url"] + '/')
           .gsub(/(?<src>src=('|"))\//, '\k<src>' + @context.registers[:site].config["url"] + '/')
           .gsub(/\sclass=['"][^'"]*['"]/, '')
           .gsub(/\sdata[-a-zA-Z]*=['"][^'"]*['"]/, '')
    end

  end
end

Liquid::Template.register_filter(Jekyll::FixRSS)
```
assistant