Skip to content

Commit

Permalink
Do not escape html from actual value. Closes ivirabyan#33
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Virabyan committed Mar 31, 2015
1 parent 51d29ba commit 18ed214
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion jquery.mentions.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@ class MentionsInput extends MentionsBase
@_addMention(name: ui.item.value, pos: ui.item.pos, uid: ui.item.uid)

_updateValue: =>
value = hlContent = escapeHtml(@input.val())
value = @input.val()
hlContent = escapeHtml(value)

for mention in @mentions
markedName = @_mark(mention.name)
hlContent = hlContent.replace(markedName, "<strong>#{mention.name}</strong>")
Expand Down
3 changes: 2 additions & 1 deletion jquery.mentions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 18ed214

Please sign in to comment.