ivirabyan / jquery-mentions

Adds mentioning support to your text fields.
http://ivirabyan.github.io/jquery-mentions/
MIT License
114 stars 49 forks source link

Apostrophes getting converted to html entity #45

Closed amerikan closed 8 years ago

amerikan commented 8 years ago

When I use it's in the mention text area, it'll become it's. Is that expected behavior? I really don't want that to happen.

ivirabyan commented 8 years ago

It is not intended to be visible to user or to be exposed via getValue(). Where exactly do you see ' ?

amerikan commented 8 years ago

I have this:

var post = $('textarea#user_post').mentionsInput('getValue');
alert(post);

If I type in a ' in the textarea such as It's time! it gets converted to It's time!.

screen shot 2015-12-15 at 9 58 49 am

amerikan commented 8 years ago

@ivirabyan here's an update. First I think in master jquery.mentions.coffee and jquery.mentions.js are not in sync.

The bug mentioned above was present in v1.0.1. If I use the .js file from master branch, the bug is not there.

amerikan commented 8 years ago

I would recommend releasing a new version so people can get latest version and not the v1.0.1 which has that bug, which to me is not a forgivable bug.

ivirabyan commented 8 years ago

I have made a new release v1.0.2

amerikan commented 8 years ago

Thanks!