nicolasbize/magicsuggest — pull request #18 by pstuart2 (2013-03-19 21:04:46+00:00)
Title: Fixed issue where the hightlight was highligting the html tag

Made a change to put in the highlight html before the call to render. My renderer was returning "`beer`".
```javascript
renderer: function (obj) {
return obj.isTop ? '' + obj.name + '' : obj.name;
}
```
Since I typed in "b" in the input field the highlighter would return "`< b >beer`"

There is also a new parameter to the render function so that it can have access to the highlighted text. Here is an example of what mine looks like.

```javascript
renderer: function (obj, highlightedText) {
return obj.isTop ? '' + highlightedText + '' : highlightedText;
}
```
I couldn't think of a way to make this backwards compatible with the time I had. Thinking about it now that could have probably done a replace.
```javascript
('beer').replace('beer', 'beer');
```