For Your Information: Keep care with the highlight trick (use of <!--highlight--> to frame the section), don’t forget to replace also the line:
$output = implode("<body>", $body);
by the line
$output = implode("<!--highlight-->", $body);
Otherwise as Smg6511 you could get an additional <body> statement at the end of the highlighted section.
I have updated the wiki documentation to precise this point.