I have a bunch of PHP files, from which I want to extract the final HTML result. For example if the PHP file content be something like:
<ul id='<% echo($newsListId) %>'>
// PHP loop to create <li> elements
</ul>
What should be extracted is:
<ul id='news-list'>
<li>First News</li>
<li>Second News</li>
<li>Third News</li>
<li>Fourth News</li>
</ul>
What should I do? Is there a software which can do that for me?
Note: There is no dynamic content in PHP files. In other words, no connection to any external database is made in PHP files. Actually, these PHP files belong to a template I downloaded from somewhere and now I want to change their language to something else (like ASP.NET for example).