title: What queries should I use for extracting symbols from a html page using Jsoup?
body: <p>I am trying to extract the emojis listed on this site <a href="http://www.i2symbol.com/emoticons/angry" rel="nofollow">http://www.i2symbol.com/emoticons/angry</a> by usin JSoup library for java. </p>
  
  <p>I have noticed in the html-source of the page that every emoji is contained in the following div id:</p>
  
  <p>The code for the following symbol is</p>
  
  &#x30FD;(&#x0CA0;_&#x0CA0;)&#x30CE;
  
  <pre><code>&lt;div id="symbol_0" data-symbols="&amp;#x30FD;(&amp;#x0CA0;_&amp;#x0CA0;)&amp;#x30CE;" contenteditable="true"&gt;&amp;#x30FD;(&amp;#x0CA0;_&amp;#x0CA0;)&amp;#x30CE;&lt;/div&gt;
  </code></pre>
  
  &#65340;&#40;&#65344;&#48;&#180;&#41;&#65295;
  
  <pre><code>&lt;div id="symbol_9" data-symbols="&amp;#65340;&amp;#40;&amp;#65344;&amp;#48;&amp;#180;&amp;#41;&amp;#65295;" contenteditable="true"&gt;&amp;#65340;&amp;#40;&amp;#65344;&amp;#48;&amp;#180;&amp;#41;&amp;#65295;&lt;/div&gt;
  </code></pre>
  
  &#40;&#9583;&#176;&#9633;&#176;&#65289;&#9583;&#65077;&#32;&#9531;&#9473;&#9531;
  
  <pre><code>&lt;div id="symbol_10" data-symbols="&amp;#40;&amp;#9583;&amp;#176;&amp;#9633;&amp;#176;&amp;#65289;&amp;#9583;&amp;#65077;&amp;#32;&amp;#9531;&amp;#9473;&amp;#9531;" contenteditable="true"&gt;&amp;#40;&amp;#9583;&amp;#176;&amp;#9633;&amp;#176;&amp;#65289;&amp;#9583;&amp;#65077;&amp;#32;&amp;#9531;&amp;#9473;&amp;#9531;&lt;/div&gt;
  </code></pre>
  
  <p>So basically, the symbols are HTML HEX codes.
  I looked at the the selector syntax given here <a href="https://jsoup.org/cookbook/extracting-data/selector-syntax" rel="nofollow">https://jsoup.org/cookbook/extracting-data/selector-syntax</a>
  But, I am unable to craft an appropriate selector query to extract these symbols out of the html page. </p>
  
  <p>And also, since there are about 27 symbols thats needs to be extracted from this page. How do I save these symbols to an external text file.</p>
  
  <p>With help from <strong>@Dave</strong>, i WAS  able to write this code. But, this prints the whole line of code, how can i just use it extract </p>
  
  &#40;&#9583;&#176;&#9633;&#176;&#65289;&#9583;&#65077;&#32;&#9531;&#9473;&#9531;  
  
  <p>from</p>
  
  <pre><code>&lt;div id="symbol_10" data-symbols="&amp;#40;&amp;#9583;&amp;#176;&amp;#9633;&amp;#176;&amp;#65289;&amp;#9583;&amp;#65077;&amp;#32;&amp;#9531;&amp;#9473;&amp;#9531;" contenteditable="true"&gt;&amp;#40;&amp;#9583;&amp;#176;&amp;#9633;&amp;#176;&amp;#65289;&amp;#9583;&amp;#65077;&amp;#32;&amp;#9531;&amp;#9473;&amp;#9531;&lt;/div&gt;
  </code></pre>
  
  <p>MY Java code</p>
  
  <pre><code>import java.io.IOException;
  import org.jsoup.Jsoup;
  import org.jsoup.nodes.Document;
  import org.jsoup.nodes.Element;
  import org.jsoup.select.Elements;
  
  public class HTMLParserExample3 {
  
    public static void main(String[] args) {
  
      Document doc;
      try {
          doc = Jsoup.connect("http://www.i2symbol.com/emoticons/angry").get();
  
          Elements symbols= doc.select("div[^data-symbols]");
          for(Element symbol : symbols) {
              System.out.println("\nSymbol: " + symbol);
          }
  
  
  
      } catch (IOException e) {
          e.printStackTrace();
      }
  
    }
  
  }
  </code></pre>