aframevr / aframe-inspector

:mag: Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
https://aframe.io/aframe-inspector/examples/
MIT License
655 stars 203 forks source link

A-Frame Inspector injects HTML character references into JavaScript code #456

Closed crcdng closed 5 years ago

crcdng commented 7 years ago

To replicate:

Open an A-Frame scene that contains a <script>, e.g https://gist.github.com/i3games/ea009e190e5bf80c0a7ea7994f1f136f

Activate the Inspector. Copy the scene to clipboard or export as HTML. The Inspector injects HTML character references into the JavaScript. Here, the result is https://gist.github.com/i3games/3787e7e40e5c7be98bec0a8f911edc2f

for (i = 0; i < 10: i++) { is transformed into: for (i = 0; i &lt; 10: i++) {

A-Frame 0.5.0

ngokevin commented 5 years ago

https://github.com/aframevr/aframe-inspector/issues/517#issuecomment-445454902