snippet(text, limit = 100)
The first limit characters of text as HTML
# File lib/rdoc/text.rb, line 149 def snippet text, limit = 100 document = parse text RDoc::Markup::ToHtmlSnippet.new(options, limit).convert document end