ritz078 / ng-embed

An AngularJS filter/directive for embedding emojis, media, maps, tweets, code and services
http://riteshkr.com/ng-embed
MIT License
122 stars 35 forks source link

If the text is not string then it is not visible #51

Closed shashwatbhatt closed 8 years ago

shashwatbhatt commented 8 years ago

because we have used input.replace method in

input = input.replace(/[&<>]/g, function (m) { return map[m]; });

and the input is a number which does not contain replace method.