Kirby
10-30-2008, 09:21 AM
The regex used to cut body for integrated pages does not take
<body >
(note the space!) into consideration, which generates incorrent HTML in some cases.
Suggested fix:
// Work around for <body> tags that could contain js with >'s
preg_match('#<body\s*(\s+\w+\s*=\s*(("|\').*?(?<!\\\)\3))*>#s', $nonindex, $bmatches);
<body >
(note the space!) into consideration, which generates incorrent HTML in some cases.
Suggested fix:
// Work around for <body> tags that could contain js with >'s
preg_match('#<body\s*(\s+\w+\s*=\s*(("|\').*?(?<!\\\)\3))*>#s', $nonindex, $bmatches);