{"id":18098259,"url":"https://github.com/eldoy/convert","last_synced_at":"2026-04-24T16:31:49.331Z","repository":{"id":62556245,"uuid":"77624954","full_name":"eldoy/convert","owner":"eldoy","description":"Convert strings and HTML to links, embedded content and sanitize from tons of different providers","archived":false,"fork":false,"pushed_at":"2017-11-21T08:57:28.000Z","size":49,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T10:18:26.744Z","etag":null,"topics":["auto-html","converter","embed","facebook","html-embed","ruby","vimeo","youtube"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eldoy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-29T16:24:12.000Z","updated_at":"2022-06-04T21:57:35.000Z","dependencies_parsed_at":"2022-11-03T06:00:21.718Z","dependency_job_id":null,"html_url":"https://github.com/eldoy/convert","commit_stats":null,"previous_names":["fugroup/convert"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fconvert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fconvert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fconvert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fconvert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eldoy","download_url":"https://codeload.github.com/eldoy/convert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430836,"owners_count":20937873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auto-html","converter","embed","facebook","html-embed","ruby","vimeo","youtube"],"created_at":"2024-10-31T20:08:54.900Z","updated_at":"2026-04-24T16:31:44.310Z","avatar_url":"https://github.com/eldoy.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convert strings and HTML to links and embedded content\n\nConvert any string or HTML to links and embedded content from a long list of providers and libraries.\n\n### Installation\n```\ngem install convert\n```\nor add to Gemfile.\n\n### Usage\n\n```ruby\n# Require convert if you're not using bundler\nrequire 'convert'\n\n# Run default converters. Pass :converters =\u003e [:auto_link, :decode]\nConvert.run('string')\n\n# Convert with Nokogiri, used by 'run'\nConvert.scan('HTML string')\n\n# URL to HTML link\nConvert.auto_link('https://crowdfundhq.com')\n\n# Embed dailymotion videos (https://dailymotion.com)\nConvert.dailymotion('string')\n\n# Decode HTML, opposite of below\nConvert.decode('string')\n\n# Encode HTML with HTMLEntities\nConvert.encode('string')\n\n# Remove embedded videos from emails\nConvert.email_escape('string')\n\n# Embed facebook video (https://www.facebook.com)\nConvert.facebook_embed('string')\n\n# Embed flickr content (https://flickr.com)\nConvert.flickr('string')\n\n# Embed a Github gist (https://gist.github.com)\nConvert.gist('string')\n\n# Embed classic google maps (https://maps.google.com)\nConvert.google_maps('string')\n\n# Twitter or Facebook hastag to HTML link\nConvert.hashtag('#flat')\n\n# Escape HTML\nConvert.escape_html('html')\n\n# Unescape HTML\nConvert.unescape_html('string')\n\n# Embed iframe\nConvert.iframe_embed('https://crowdfundhq.com/campaigns/flatty.embed')\n\n# Convert\nConvert.image_tag('https://crowdfundhq.com/logo.png')\n\n# URL to Instagram embedded content\nConvert.instagram('string')\n\n# String to markdown (https://kramdown.gettalong.org)\nConvert.kramdown('string')\n\n# Embed live leak videos\nConvert.liveleak('string')\n\n# Embed markdown with Redcarpet\nConvert.redcarpet('string')\n\n# Sanitize HTML with the Sanitize gem\nConvert.sanitize('HTML string')\n\n# Sanitize config: :custom, :full, :linebreaks, :simple, :restricted, :basic, :relaxed\n# You can add your own config by adding a file like the ones here:\n# https://github.com/fugroup/convert/tree/master/lib/sanitizers\nConvert.sanitize('HTML string', :config =\u003e :custom)\n\n# Strip parameters from URL\nConvert.strip_params('URL string')\n\n# Same as above, a few other options\nConvert.markdown('string')\n\n# Embed metacafe content (https://www.metacafe.com)\nConvert.metacafe('string')\n\n# New lines to HTML br tags\nConvert.simple_format('string')\n\n# Embed Soundcloud music (https://soundcloud.com)\nConvert.soundcloud('string')\n\n# Embed TED videos (https://www.ted.com)\nConvert.ted('string')\n\n# Twitter embed tweet (https://twitter.com)\nConvert.twitter('string')\n\n# Embed Youtube or Vimeo videos from URL\nConvert.video_embed('string')\n\n# Embed Vimeo video, full (https://vimeo.com)\nConvert.vimeo('string')\n\n# Embed Vimeo video, simple\nConvert.vimeo_embed('string')\n\n# Embed worldstar content\nConvert.worldstar('string')\n\n# Embed Youtube videos, full (https://youtube.com)\nConvert.youtube('string')\n\n# Embed Youtube videos, simple\nConvert.youtube_embed('string')\n\n# Embed Youtube image\nConvert.youtube_image('string')\n\n# Embed Youtube JS API\nConvert.youtube_js_api('string')\n\n# Convert Chinese and other non-standard characters to IDN\nConvert.to_ascii('string')\n\n# Reverse IDN conversion\nConvert.to_unicode('string')\n```\n\nCreated and maintained by [Fugroup Ltd.](https://www.fugroup.net) We are the creators of [CrowdfundHQ.](https://crowdfundhq.com)\n\n`@authors: Vidar`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Fconvert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldoy%2Fconvert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Fconvert/lists"}