How to make textangulars paste html allow iframe use

The text library uses angular -sanitize to sanitize text. I want to be able to embed iframe tags from YouTube videos in order to support embedding videos.

How can I make angular -sanitize allow iframe tags?

+4
source share
2 answers

I am not familiar with Textangular, but if you do not want Angular to be misinformed, you can use: $ sce.trustAsHtml ()

0
source

TextAngular placeholder img , iFrame . . placeholder img textAngular editor var?. youtube .

0

Source: https://habr.com/ru/post/1531792/


All Articles