title: How to change a selected text in a textarea into anchor tag
body: <p>in So and many posting sites we can change our selected text into a anchor tag here how should i change a selected text within a textarea into a anchor element?</p>
  
  <p>for example</p>
  
  <pre><code>&lt;a class="button add-anchor"&gt;add-anchor&lt;/a&gt; 
  
  &lt;textarea&gt;
         hello am name
   &lt;textarea&gt;    
  
    &lt;a class="ppst button"&gt;Post&lt;/a&gt;
  </code></pre>
  
  <p>here am having a textarea used to post a content here, i need to add some links for a word.it can made little easier when using a div with <code>contenteditable</code> option here how should i make a selected text in a textarea into anchor tag after it get posted. am completely struck ed here. </p>