Function Reference

_FFReadHTML

Liefert den HTMl-Quellcode einer Seite.

#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 (addierbar)
0= (Default) deaktiviert
1= Non ASCII
2= Double Whitespaces
4= Double Linefeeds
8= HTML-Tags
16= Einfacher HTML-Tags / Entities Konvertor

 

Return Value

Success: Returns innerHTML
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