Showing posts with label Parse your HTML data in AngularJS. Show all posts
Showing posts with label Parse your HTML data in AngularJS. Show all posts

Tuesday, August 23, 2016

Parse your HTML data in AngularJS

ngSanitize 

AngularJS provides ngSanitize module to securely parse and manipulate HTML data in your application. To use it include the angular-sanitize.js file and set ngSanitize as a dependency in your angular app.



var app = angular.module('sanitizeExample', ['ngSanitize']); app.controller('ExampleController',function ($scope, $sce)
{
   var snippet ='an html\n' + 'click here\n snippet'; 
   $scope.trustedSnippet = $sce.trustAsHtml(snippet); //sce=Strict Contextual Escaping 
});

Serverless vs. Kubernetes: A Beginner's Guide

Serverless vs. Kubernetes: A Beginner's Guide Trying to decide between serverless and Kubernetes? Here's a simple breakdown: 🔹 Choo...