Module: Bidify
- Defined in:
- lib/bidify.rb,
lib/bidify/version.rb,
lib/bidify/bidifier.rb,
lib/bidify/html_string_bidifier.rb
Overview
Bidify module
The namespace and helper methods for bidiying HTML contents
Example:
bidified_html = Bidify.bidify_html_string(regular_html)
Defined Under Namespace
Classes: Bidifier, HtmlStringBidifier
Constant Summary collapse
- DEFAULT_BIDIFIABLE_TAGS =
%w[div h1 h2 h3 h4 h5 h6 p ul ol blockquote].freeze
- TABLE_TAGS =
%w[table thead tbody th tr td].freeze
- VERSION =
'0.3.0'
Class Method Summary collapse
-
.bidify_html_string(html_string) ⇒ String
Applies dir=“auto” to the given html string with default configuration.
Class Method Details
.bidify_html_string(html_string) ⇒ String
Applies dir=“auto” to the given html string with default configuration
23 24 25 |
# File 'lib/bidify.rb', line 23 def bidify_html_string(html_string) Bidify::HtmlStringBidifier.new.apply(html_string) end |