What are the advantages and disadvantages of using AddType to parse HTML files as PHP files in Apache?

When using Apache, you can use the AddType directive in your .htaccess file to parse HTML files as PHP files. This can be useful if you want to include PHP code within your HTML files. However, this approach can pose security risks if not configured properly, as it may allow for the execution of arbitrary PHP code within HTML files.

<IfModule mod_mime.c>
    AddType application/x-httpd-php .html
</IfModule>