md-data-table icon indicating copy to clipboard operation
md-data-table copied to clipboard

html format

Open zuhrasofyan opened this issue 7 years ago • 1 comments

How to show correctly text with some simple html format (e. g: \n for line break)? I am using filter with trustAsHtml such as below, but it does not work, while if I am using non md-data-table, it works.

.filter('unsafe', function ($sce){
  	return function (val) {
  		return $sce.trustAsHtml(val);
  	}
  })

zuhrasofyan avatar Mar 22 '17 06:03 zuhrasofyan

I have similar requirement as you about put a html into a cell. What I did is expose $sce.trustAsHtml to scope and use it in view.

You can check this stackoverflow.

waitingduck avatar Jun 27 '17 23:06 waitingduck