I have a web app that uses messages from Twitter, for example.
A feed of JSON is used to build a list of messages, but characters such as
I have a web app that uses messages from Twitter, for example.
A feed of JSON is used to build a list of messages, but characters such as
I found that the regex above was breaking on some urls such as bit.yl shortlinks so i adapted another example i found somewhere:
Usage:
It looks like Angular's
$sanitize
service attempts to convert the characters to their HTML-entity equivalent. However, for certain single emoji characters, it splits it to 2. As can be seen at http://plnkr.co/edit/fDDen3bnnrQUvx3JfKgw?p=preview,