Generic function to add a pair of enclosing "tags" to "script", then insert into "into" of "my_html"
1 | add_tag_into(my_html, script, tag, into)
|
my_html |
html in a vector of strings; output from 'create_html'. |
script |
character string; script to add. |
tag |
character string; html tags, e.g. div, span, script, style, h3. |
into |
character string; unique identifier of a line in the html. Element id is highly recommended. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.