jas-chen / atom-live-server

Launch a simple development http server with live reload capability.
https://atom.io/packages/atom-live-server
MIT License
121 stars 49 forks source link

Displaying Code on Website when Making <img> Tags. #270

Open ChrisDev8 opened 3 years ago

ChrisDev8 commented 3 years ago

If you have a problem launching a live-server, please try following steps:

  1. Make sure you use the right hotkeys. After v2.0.0, the keys became ctrl-alt combination.
  2. Try launching live-server from top menu: Package -> live-server -> Start Server to see if it works.

I tried but didn't work.

Current behavior

It displays text under the image buts its javascript code and I don't know what it means.

image

image

image

Expected behavior

When I add a attribute width="100%" or height="400px" on img tag on html documents.

PLS HELP

I also got a picture of the injected code fyi.