Module: PublishingPlatformNokodiff
- Defined in:
- lib/publishing_platform_nokodiff.rb,
lib/publishing_platform_nokodiff/differ.rb,
lib/publishing_platform_nokodiff/engine.rb,
lib/publishing_platform_nokodiff/version.rb,
lib/publishing_platform_nokodiff/html_fragment.rb,
lib/publishing_platform_nokodiff/text_node_diffs.rb,
lib/publishing_platform_nokodiff/formatting_helpers.rb,
lib/publishing_platform_nokodiff/changes_in_fragments.rb
Defined Under Namespace
Modules: FormattingHelpers
Classes: ChangesInFragments, Differ, Engine, HTMLFragment, TextNodeDiffs
Constant Summary
collapse
- VERSION =
"0.2.0"
Class Method Summary
collapse
Class Method Details
.diff(before_html, after_html) ⇒ Object
.safe_html(html) ⇒ Object
27
28
29
|
# File 'lib/publishing_platform_nokodiff.rb', line 27
def self.safe_html(html)
html.respond_to?(:html_safe) ? html.html_safe : html
end
|