Super, mozes li mi jos reci kako da parsujemo ujedno i parametre unutar body taga? ja sam pokusao ovako i nije mi uspijelo:
Code:
function parseContent() // parse content between body tags
{
if(eregi("<body(.*)>(.*)</body>", $this->mFileContent, $output))
{
$this->mBodyContent = $output[2];
}
else
{
$this->mBodyContent = "";
}
}
function parseBodyParameters() // parse parameters from body tag
{
if(eregi("<body (.*)>", $this->mFileContent, $output))
{
$this->mBodyParameters = $output[1];
}
else
{
$this->mBodyParameters = "";
}
}
thnx. ciao