Description Usage Arguments Details Value Author(s) Examples
Download a talk from lds.org and process it into plain text.
1 |
url |
URL of the talk to be downloaded |
The complete HTML code from the page is downloaded. A series of
regular expressions is used to parse the HTML into a plain text version of
the talk. Using regular expressions is not generally recommended for
parsing HTML. Unfortunately, the HTML code doesn't appear to play well with
more advanced forms of parsing. The regular expressions seem to work well
here mostly because talk paragraphs start with the tag
<p uri= ... id="pid[num]">
. HTML rendered characters are converted
to plain text and tags such as links, italic, and bold are removed.
A character string giving the full text of the talk. Note that references are not included.
Benjamin Nutter
1 2 | # Download the first talk of the 1971 General Conference
getTalk('https://www.lds.org/general-conference/1971/04/out-of-the-darkness?lang=eng')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.