Function Reference

_FFReadHTML

Returns the HTML-source code of a page.

#Include <FF.au3>
_FFReadHTML([$sMode = "body"[, $iFilter = 0]])

 

Parameters

$sMode
Optional: Return Mode
body= (Default) innerHTML from <body>
html= innerHTML from <html>
$iFilter
Optional: Filter (additive)
0= (Default) disabled
1= Non ASCII chars
2= Double whitespaces
4= Double linefeeds
8= HTML tags
16= Simple HTML tags / Entities converter

 

Return Value

Success: Returns string
Failure: Returns "" and sets @ERROR
@ERROR: 0 ($_FF_ERROR_Success)
1 ($_FF_ERROR_GeneralError)

 

Remarks



 

Related

_FFReadText, _FFXPath

 

Example

#Include <FF.au3>

If _FFStart("http://ff-au3-example.thorsten-willert.de/") Then
	$sHTML = _FFReadHTML()
	If Not @error Then MsgBox(64,"Sourcecode",StringLeft($sHTML,1000))

	; filtered source-code
	$sHTML = _FFReadHTML("html",7)
	If Not @error Then MsgBox(64,"Sourcecode",$sHTML)
EndIf