You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: project_post_decorator.rb
    path of file: ./repos/catarse/app/decorators
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class ProjectPostDecorator < Draper::Decorator
  decorates :project_post
  include Draper::LazyHelpers

  def email_comment_html
    doc = Nokogiri::H
    
  def email_comment_html
    doc = Nokogiri::HTML(source.comment_html)
    doc.xpath('//iframe').each do |iframe|
      src = iframe.attr('src')
      link = doc.create_element 'a'
      link['href'] = src.gsub(/^\/\//, 'http://')
      link.content = src.gsub(/^\/\//, '')
      iframe.replace link
    end
    doc.at('body').inner_html
  end
end