Description Usage Arguments Value Author(s) References See Also Examples
This function is used for processing an html string in order to find the main text of this string. The output is a list that contains the extracted text.
1 | html2text(html, session=getCurlHandle())
|
html |
A string containing valid html code. |
session |
This is the CURLHandle object giving the structure for the options and that will process the command. For curlMultiPerform, this is an object of class code MultiCURLHandle-class. |
A list with the main text in the html.
Ryan Elmore
http://www.datasciencetoolkit.org/developerdocs#html2text
curlPerform
,
getCurlHandle
,
dynCurlReader
1 2 3 4 5 6 7 | ## Not run:
html <- '<html><head><title>MyTitle</title></head><body><script
type="text/javascript">something();</script><div>Some actual
text</div></body></html>'
html2text(html)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.