title: AngularJS UI Bootstrap Typeahead not working as expected
body: <p>I'm building a small search app using Elasticsearch and AngularJS. I'm using AngularJS UI bootstrap typeahead to implement autocomplete and I'm using ES's <code>edge_n_grams</code> and <code>highlight object</code> to 1) generate the suggestions and 2) highlight the suggestions, respectively. ES highlight object wraps the suggestions in <code>HTML &lt;em&gt;&lt;/em&gt;</code> tags... which <em>seems</em> to be causing some issues with how I have things setup.</p>
  
  <p>1) When I press Enter key instead of clicking on the search button - all that happens is the search terms are displayed wrapped in the <code>&lt;em&gt;&lt;/em&gt;</code> tags AND no search is performed... <code>&lt;em&gt;search terms&lt;/em&gt;</code></p>
  
  <p>2) When I select a suggestion with the mouse, same thing happens.</p>
  
  <p>The only time search performs is when I type a query in and click the search button... </p>
  
  <p>Here is the search form that I'm using, I have ng-submit="search()" on the form element and on the button, not sure where I'm going wrong......?</p>
  
  <pre><code>&lt;form name="q" ng-submit="search()" class="navbar-form" id="results-search" role="search"&gt;
    &lt;div class="input-group"&gt;
      &lt;input type="text" name="q" ng-model="searchTerms" class="form-control input-md" placeholder="{{ searchTerms }}" id="search-input" uib-typeahead="query for query in getSuggestions($viewValue)" typeahead-on-select="search($item)"&gt;
  
        &lt;div class="input-group-btn"&gt;
          &lt;button type="submit" ng-submit="search()" class="btn btn-primary btn-md"&gt;&lt;i class="fa fa-search fa-lg"&gt;&lt;/i&gt;&lt;/button&gt;
          &lt;/div&gt;
     &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Am I doing something wrong with the UI Bootstrap Typeahead?</p>
  
  <p><strong>More clarification</strong>
  So basically what I'm asking is how do I get the <em></em> tags stripped from the suggestions, on selection and for searching?</p>