title: Convert/Encode html special characters on copy or by selection in IntelliJ Idea
body: <p>Lets say that i want to copy the following to an HTML file (inside IntelliJ Idea IDE). (as text)</p>
  
  <pre><code>The &lt;head&gt; element is a container for metadata (data about data) and is placed between the &lt;html&gt; tag and the &lt;body&gt; tag.
  </code></pre>
  
  <p>And have it converted to this</p>
  
  <pre><code>The &amp;lt;head&amp;gt; element is a container for metadata (data about data) and is placed between the &amp;lt;html&amp;gt; tag and the &amp;lt;body&amp;gt; tag.
  </code></pre>
  
  <p>so that it will be copied as printable text not as HTML tags</p>
  
  <p>I usually use this <a href="http://www.web2generators.com/html-based-tools/online-html-entities-encoder-and-decoder" rel="nofollow noreferrer">web2generators.com | HTML Entities Encoder / Decoder</a> but, I want a faster method.</p>
  
  <p>I have also found this question <a href="https://stackoverflow.com/questions/22367890/is-there-a-functionality-like-sublimes-html-encode-special-characters-in-int">Is there a functionality like Sublime's “HTML: Encode Special Characters” in Intellij IDEA</a>, but the update to the question (Which is a partial solution) still doesn't solve the tag problem.</p>