Method: Flannel::FeedParser#inner_html
- Defined in:
- lib/flannel/feed_parser.rb
#inner_html(text, tag) ⇒ Object
57 58 59 60 61 62 63 64 |
# File 'lib/flannel/feed_parser.rb', line 57 def inner_html text, tag regex = Regexp.compile "<#{tag}>(.*)<\/#{tag}>?" matches = regex.match text return "" unless matches matches.captures[0] end |