mod/fix certain htmllib.php; fix sitepreview.php