title: How to format JQueryUI autocomplete response?
body: <p>I am trying to make an autocomplete widget that will display the name and a short description of the matched item.</p>
  
  <p>For example, if I type "America" it will show "North <strong>America</strong> - The northern subcontinent of the Americas." and "South <strong>America</strong> - The southern subcontinent of the Americas."</p>
  
  <p>I have successfully made it so my database will return the appropriate JSON response with id,value (name of the item, eg. North America, and desc (short description eg. 'The northern subcontinent...'), I just need help to format the returned results as</p>
  
  <pre><code>&lt;li&gt;&lt;strong&gt;value&lt;strong&gt;&lt;br&gt;&lt;p&gt;desc&lt;/p&gt;&lt;/li&gt; 
  </code></pre>
  
  <p>instead of just</p>
  
  <p><code>&lt;li&gt;value&lt;/li&gt;</code></p>
  
  <p>Thanks a lot in advance.</p>
  
  <p>P.S. I have been trying to look for an answer on Stack Overflow, but the answers I've found involve formatResult and other methods that are no longer supported.</p>