Method: EbookTools#sanitize_for_epub_text
- Defined in:
- lib/ebook_tools.rb
#sanitize_for_epub_text(content) ⇒ Object
sanitize_for_epub_text
287 288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/ebook_tools.rb', line 287 def sanitize_for_epub_text(content) return content if content.blank? lines = [] content.each_line do |line| unless line.downcase.include?('document outline') lines << line else break; end end lines.join("") end |