title: is there a match function to bold text in ruby or rails?
body: <p>hi im creating a tags system, and when the user types, i want the results to be bolded where they match the characters the user is typing</p>
  
  <p>where my tags get rendered is here...</p>
  
  <pre><code>@tags = Tag.order(:name).where("name like ?", "%#{params[:term]}%")
  render json: @tags.map{ |tag| {:label =&gt; "#{tag.name} x #{tag.count}", :value =&gt; tag.name} }
  </code></pre>
  
  <p>what the user is typing can be fetched from params[:term]. is there a match function that can bold the appropriate characters as the user types?</p>
  
  <p>thanks</p>