Convert strings and HTML to links and embedded content
Convert any string or HTML to links and embedded content from a long list of providers and libraries.
Installation
gem install convert
or add to Gemfile.
Usage
require 'convert'
Convert.run('string')
Convert.scan('HTML string')
Convert.auto_link('https://crowdfundhq.com')
Convert.dailymotion('string')
Convert.decode('string')
Convert.encode('string')
Convert.email_escape('string')
Convert.facebook_embed('string')
Convert.flickr('string')
Convert.gist('string')
Convert.google_maps('string')
Convert.hashtag('#flat')
Convert.escape_html('html')
Convert.unescape_html('string')
Convert.iframe_embed('https://crowdfundhq.com/campaigns/flatty.embed')
Convert.image_tag('https://crowdfundhq.com/logo.png')
Convert.instagram('string')
Convert.kramdown('string')
Convert.liveleak('string')
Convert.redcarpet('string')
Convert.sanitize('HTML string')
Convert.sanitize('HTML string', :config => :custom)
Convert.strip_params('URL string')
Convert.markdown('string')
Convert.metacafe('string')
Convert.simple_format('string')
Convert.soundcloud('string')
Convert.ted('string')
Convert.twitter('string')
Convert.video_embed('string')
Convert.vimeo('string')
Convert.vimeo_embed('string')
Convert.worldstar('string')
Convert.youtube('string')
Convert.youtube_embed('string')
Convert.youtube_image('string')
Convert.youtube_js_api('string')
Convert.to_ascii('string')
Convert.to_unicode('string')
Created and maintained by Fugroup Ltd. We are the creators of CrowdfundHQ.
@authors: Vidar