-<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <title>embed.js</title> <meta name=description content="A JavaScript plugin that analyses the string and automatically embeds emojis, media, maps, tweets, code and services."> <meta name=viewport content="width=device-width,initial-scale=1"> <link rel="shortcut icon" href=/favicon.e1d38bd4.ico> <link rel=apple-touch-icon href=/apple-touch-icon.9727d3c2.png> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300" rel=stylesheet type=text/css> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel=stylesheet href=styles/vendor.e0d30183.css> <link rel=stylesheet href=styles/api.22ede157.css> <link rel=stylesheet href=https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.9.1/styles/github.min.css> <body> <header> <a href="/embed.js/"><img src=images/logo.b48fbe99.png srcset="images/logo@2x.f073d551.png 2x" alt=Logo></a> <nav> <ul> <a href="/embed.js/"> <li>Home</li> </a> <a href=getting_started.html> <li>Getting Started</li> </a> <a href=doc.html> <li>Options</li> </a> <a href=api.html> <li>API</li> </a> <a href=examples.html> <li>Examples</li> </a> </ul> </nav> </header> <div class=left-nav> <ul> <li><b>Default Methods</b></li> <a href=#render> <li>render()</li> </a> <a href=#text> <li>text()</li> </a> <a href=#destroy> <li>destroy()</li> </a> <li><b>ejs Methods</b></li> <a href=#setOptions> <li>.setOptions()</li> </a> <a href=#applyEmbedJS> <li>.applyEmbedJS()</li> </a> <a href=#destroyEmbedJS> <li>.destroyEmbedJS()</li> </a> <a href=#template> <li>.template.serviceName()</li> </a> </ul> </div> <div class=container> <h4>Default Methods</h4> <p>This method of usage should be preferred if you wan't to apply embed.js to a single block or want the result as string.</p> <h5 id=render><b>.render()</b></h5> Renders the result in the element from which the original raw string was taken. <pre><code class=xml>
0 commit comments