Convert a HTML file into a HTML block to be copied and pasted for CMS.
convert_html2cms.Rd
Convert a HTML file into a HTML block to be copied and pasted for CMS.
Usage
convert_html2cms(
in_text,
full_html = the$full_html %||% FALSE,
tag = the$tag %||% "body",
id = the$id,
remove_script = the$remove_script %||% FALSE
)
Arguments
- in_text
character. Character vector representing the HTML file to convert.
- full_html
logical. If TRUE, produce complete html output, convenient when drafting a document. When this option is enabled, tag and id and remove_script options are silently ignored.
- tag
character. Outer-most tag for the resulting HTML snippet.
- id
character. id attribute for the outer-most tag.
- remove_script
logical. If TRUE, script tags are all stripped out.