Is it ionic framework will automatically delete HTML5 tag like audio, video.... I would like to try to send audio (file) using ionic via socketIO
Here is my code....
var audio_message = "<audio controls><source src='"+message+"'></audio>";
self.messages.push({content:$sanitize(audio_message),style:style_type,username:username,color:color})
This is the code of my controller, the "message" is the url of the audio
and the HTML:
<ul class="messages">
<li class="{{message.style}}" ng-repeat="message in chatCtrl.messages" >
<div class="msg_username" ng-style="{color:message.color}" ng-bind-html="message.username" ></div>
<div class="msg_content" ng-bind-html="message.content" ></div>
</li>
</ul>
It will add new li if got a new message. Everything is well (img tag and text) but the message will disappear when I using audio tag
I found that some of the developer said that add " data-tap-disabled="true" " to prevent this problem but it's not effect...