5

Textangular library uses angular-sanitize to sanitise text. I want to be able to insert iframe tags with youtube videos to support embedding videos.

How can I make angular-sanitize allow iframe tags?

2 Answers2

0

I'm not familiar with Textangular but if you don't want Angular to sanitize you can use: $sce.trustAsHtml()

Nick
  • 19,198
  • 51
  • 185
  • 312
0

TextAngular uses custom renderers to use a placeholder img while editing, then we convert it to an iFrame for display. See how to strip placeholder img in textAngular editor in scope var?. Also we have a youtube button in the toolbar.

Community
  • 1
  • 1
Simeon Cheeseman
  • 1,748
  • 1
  • 13
  • 24