How to set an iframe src attribute from a variable in AngularJS

I’m trying to set the src attribute of an iframe from a variable and I can’t get it to work… The markup: <div class=”col-xs-12″ ng-controller=”AppCtrl”> <ul class=””> <li ng-repeat=”project in projects”> <a ng-click=”setProject(project.id)” href=””>{{project.url}}</a> </li> </ul> <iframe ng-src=”{{trustSrc(currentProject.url)}}”> Something wrong… </iframe> </div> controllers/app.js: function AppCtrl ($scope) { $scope.projects = { 1 : { “id” : … Read more

Allow all attributes in $allowedposttags tags

I would like to use $allowedposttags to allow extra HTML tags during entry submission. Can I allow all attributes for a specific tag using $allowedposttags? For example, the code below will allow iframe tags and the src, height, and width attributes in the iframe tags: $allowedposttags[‘iframe’] = array( ‘src’ => array(), ‘height’ => array(), ‘width’ … Read more