0
Fixed

Web preview of php files doesn't interpret html part

Alexander Blach (Developer) 14 years ago updated 14 years ago 0
Textastic can't run php code on the iPad, but the html part should be interpretet in the web preview. Instead, the plain html tags are shown.
Version 2.0

Answer

Answer
Fixed
Textastic now creates a file "file.php$$preview.html" so that the UIWebView interprets the file as html. It is deleted after the preview is loaded.

I tried various other ways to change the MIME type to "text/html", but then other things didn't work.

So the simple (but not so elegant) solution worked best.
Answer
Fixed
Textastic now creates a file "file.php$$preview.html" so that the UIWebView interprets the file as html. It is deleted after the preview is loaded.

I tried various other ways to change the MIME type to "text/html", but then other things didn't work.

So the simple (but not so elegant) solution worked best.