Changes

Jump to navigation Jump to search
177 bytes added ,  09:24, 9 September 2017
Added an example to show fetch:text() with optional attributes
|
* <code><nowiki>fetch:text("http://en.wikipedia.org")</nowiki></code> returns a string representation of the English Wikipedia main HTML page.
* <code><nowiki>fetch:text("http://www.bbc.com","US-ASCII",true())</nowiki></code> returns the BBC homepage in US-ASCII with all non-US-ASCII characters replaced with &#xFFFD;.
* <code><nowiki>stream:materialize(fetch:text("http://en.wikipedia.org"))</nowiki></code> returns a materialized representation of the streamable result.
|}
administrator, editor
33

edits

Navigation menu