Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't find smileys in the beginning of sentence #5

Open
luiscruz opened this issue Jan 29, 2013 · 1 comment
Open

Doesn't find smileys in the beginning of sentence #5

luiscruz opened this issue Jan 29, 2013 · 1 comment

Comments

@luiscruz
Copy link

When I have the following structure:

  <div class='message'>
    <p>:)</p> 
  </div>

And I execute:

  $('.message').emoticonize();

It doesn't recognize the smiley.

To fix it, i have to add a space in the beginning of sentence:

  <div class='message'>
    <p> :)</p> 
  </div>

OR execute:

$('.message p').emoticonize();

Thanks,
Luis

@JangoSteve
Copy link
Owner

It sounds like your issue may be due to line 65. If you read the comment above that line, you'll see what that line is doing. I included in that comment how your issue should theoretically be solved, but apparently I couldn't get it to work properly. I don't remember what the issue was to be honest, because it was a while ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants