eval should be able to parse html/php
you need to make sure the proper tags are in the var your
going to eval
if the var starts with html then php you need closing tag at beginning ?> of the var basicly the eval need to continue from the page that is using it and return to the page with out tag errors
another alternative is to seperate the php and html
the link here http://www.phpbuilder.com/board/showthread.php?s=&threadid=10280557
shows a example of this the example can handle html ,php or html/php