title: Get javascript rendered html source using phantomjs
body: <p>First of all, I am not looking for any help in development or testing environment. Also I am new to phantomjs and all I want is just the command line operation of phantomjs on linux terminal. </p>
  
  <p>I have an html page whose body is rendered by some javascript code. What I need is I wanted to download that rendered html content using phantomjs. </p>
  
  <p>I don't have any idea using phantomjs. I have a bit of experience in shell scripting. So I have tried to do this with <code>curl</code>. But as curl is not sufficient to render javascript, I was able to get the html of the default source code only. The rendered contents weren't downloaded. I heard that ruby mechanize may do this job. But I have no knowledge about ruby. So on further investigation I found the command line tool <code>phantomjs</code>. How can I do this with <code>phantomjs</code>?</p>
  
  <p>Please feel free to ask what all additional information do I need to provide.</p>