Class: Filters::ParagraphStripper

Inherits:
ScratchPad::Addon::Filter
  • Object
show all
Defined in:
lib/scratch_pad-filters-paragraph_stripper/paragraph_stripper.rb

Class Method Summary collapse

Class Method Details

.process(string) ⇒ Object



3
4
5
6
7
# File 'lib/scratch_pad-filters-paragraph_stripper/paragraph_stripper.rb', line 3

def self.process(string)
  string.gsub! /<p>/, ''
  string.gsub! /<\/p>/, ''
  string
end