class Wptemplates::Preprocessor
Public Instance Methods
preprocess(text)
click to toggle source
# File lib/wptemplates/preprocessor.rb, line 5 def preprocess(text) strip_html_comments!(text) text end
Protected Instance Methods
strip_html_comments!(text)
click to toggle source
# File lib/wptemplates/preprocessor.rb, line 12 def strip_html_comments!(text) text.gsub!(/<!--.*?-->/m,'') end