title: Read from HTML using rvest
body: <p>Is it possible to read the text that is stored in the input type="radio" tag and followed by TAG span class="glyphicon glyphicon-ok" using rvest package. E.g: i want to read "Carbohydrates and fats" in a character vector</p>
  
  <p>R code #does not work and give NA is stored in p_ans</p>
  
  <pre><code>install.packages('rvest')
  library('rvest')
  
  url &lt;- 'http://upscfever.com/upsc-fever/en/test/en-test-sci1.html'
  
  webpage &lt;- read_html(url)
  
  p_ans &lt;- webpage %&gt;%
          html_nodes("input + glyphicon-ok") %&gt;%
          html_text()
  </code></pre>
  
  <p>HTML Code</p>
  
  <pre><code>&lt;div class="form-group" id="myform"&gt;
              &lt;label for="usr"&gt;Q1: Energy giving foods are &lt;/label&gt;
       &lt;/div&gt;
      &lt;div class="radio"&gt;
        &lt;label&gt;&lt;input type="radio" value="1" name="optradio0"&gt;Carbohydrates and fats&lt;span class="glyphicon glyphicon-ok"&gt;&lt;/span&gt;&lt;/label&gt;
      &lt;/div&gt;
      &lt;div class="radio"&gt;
        &lt;label&gt;&lt;input type="radio" id="opt1" value="-0.33" name="optradio0"&gt;Carbohydrates and Proteins&lt;span id="sp1" class="glyphicon glyphicon-remove"&gt;&lt;/span&gt;&lt;/label&gt;
      &lt;/div&gt;
  </code></pre>