Convert remaining embedded HTML to HEREDOC inside cast.php