Answer the question
In order to leave comments, you need to log in
AngularJS 1.5.8 how to check posts for html tags?
There is a chat.
<form name="publish">
<textarea ng-textarea-enter="msgSend()" name="message" ng-model="textMsg"></textarea>
<input class="send-btn" ng-click="msgSend()" type="submit" value="" ng-disabled="isError()">
</form>
$scope.msgSend = function() {
var tmp = $sce.trustAsHtml('My name is <div style = "color:red; width: 500px; height: 500px; background: red;"><b>Mudassar Khan</b></div>');
console.log(tmp);
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question