Copy monkey_patch.rb
or util.rb
content into your project.
string.to_pretty_html
string.to_pretty_html(skip_validation: false) # default
string.to_pretty_html(skip_validation: true)
-
Create a file named
example.rb
. -
Copy its content from gist.
-
Run it.
ruby example.rb