Wednesday, October 19, 2016

Bind a html string with Enhanced rich text box which has heavy formatting in O365 using Angular JS

Bind a html string with Enhanced rich text box which has heavy formatting in O365 using Angular JS , below solution did the trick.

You have to use $sce.trustAsHtml(), to use it directly into the DOM, you could do it like this, JS/controller part:

Ref: http://stackoverflow.com/questions/21503588/angularjs-bind-html-string-with-custom-style

$scope.trustAsHtml = function(string) {
    return $sce.trustAsHtml(string);
};
And in DOM/HTML part
<div data-ng-bind-html="trustAsHtml(htmlString)"></div>

Select and Delete text vertically in bigger text OR flat file

If you want to Select and Delete text vertically in bigger text OR any flat file use below command to do it. Example below: A BCEDF CDEF...