Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
/*! twilio-video.js 2.0.0-dev
The following license applies to all parts of this software except as
documented below.
Copyright (c) 2015, Twilio, inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are

Keybase proof

I hereby claim:

  • I am acmcc on github.
  • I am acmcc (https://keybase.io/acmcc) on keybase.
  • I have a public key ASAvaDOFswvx3vsKhj8r5nSMjLc61XDhfjjvcS0uYDgEHgo

To claim this, I am signing this object:

require './inliner'
html = <<END_STR
<!doctype html>
<html>
<head>
<style id="head-styles">p { font-weight: bold }</style>
<style>p { color: red }</style>
</head>
<body>
require 'nokogiri'
require 'premailer'
html = <<END_STR
<!doctype html>
<html>
<head>
<style>p { color: red }</style>
</head>
<body>
require 'nokogiri'
require 'premailer'
html = '<!doctype html><html><head><style>p { color: red }</style></head><body><p>Josh &mdash; test</p></body></html>'
p = Premailer.new(html, with_html_string: true, adapter: :nokogiri, input_encoding: 'UTF-8')
puts p.to_inline_css