Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api.controller=function($scope,$sce) {
api.controller=function($scope) {
/* widget controller */
var c = this;

Expand All @@ -20,6 +20,6 @@
var regex = new RegExp(key.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1"),'g');
text = text.replace(regex,c.emojiMap[key]);
}
c.outputText= $sce.trustAsHtml(text);
c.outputText= text;
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h4>😊
placeholder="Type your message here..."></textarea>
<div class ="mt-3">
<h5>
Ouput Preview:
Output Preview:
</h5>
<div class="p-2 border rounded bg-light" ng-bind-html="c.outputText">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ This widget enhances the user experience by automatically converting emojis code
":tada:":🎉
## Output


![Emoji Output](emoji.png)
Loading