tulios / json-viewer

It is a Chrome extension for printing JSON and JSONP.
https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh
MIT License
3.34k stars 684 forks source link

Prevent extension from parsing php plain text #201

Open SuperBerny opened 6 years ago

SuperBerny commented 6 years ago
<?php echo 2 + 2; ?>

<h1>This page is all about Brian</h1>
<?php echo

 5 * 5 ?>
<h2>All About Brad</h2>

4 and 25 will not show up on the screen unless I put them after the tags. Sometimes the top part of the page will be the JSON viewer and the rest will be my html. Is there anyway to stop it from parsing php?

test test1

tulios commented 6 years ago

Interesting

marcelstoer commented 6 years ago

Is there anyway to stop it from parsing php?

Rename your file from .php to e.g. .html (assuming the web server will still process it as PHP of course)?