lib/padrino-helpers/format_helpers.rb in padrino-helpers-0.10.3 vs lib/padrino-helpers/format_helpers.rb in padrino-helpers-0.10.4

- old
+ new

@@ -1,7 +1,10 @@ module Padrino module Helpers + ### + # Helpers related to formatting or manipulating text within templates. + # module FormatHelpers ## # Returns escaped text to protect against malicious content # # @param [String] text @@ -204,10 +207,10 @@ # The text that will be searched. # @param [String] words # The words to be highlighted in the +text+. # @param [Hash] options # Formatting options for the highlight. - # @option options [String] :highlighter (’<strong class="highlight">\1</strong>’) + # @option options [String] :highlighter ('<strong class="highlight">\1</strong>') # The html pattern for wrapping the highlighted words. # # @return [String] The text with the words specified wrapped with highlighted spans. # # @example