dimanche 17 juillet 2016

Getting content from html

I want to download content from html like this. It is ember app.

<body>
<div id="app"></div>
</body>

When i click inspect element, it showing something like this:

<body>
  <div id="app" class="emeber-application">
  <div id="ember344" class="ember-view">
  <div class="main header>..</div>
  ....
</body>

So, is it possible (and how) to get content of this and write it to file, using JavaScript? Not manually copy and paste.

Sorry for my english.




Aucun commentaire:

Enregistrer un commentaire