-
Notifications
You must be signed in to change notification settings - Fork 35
Inserting HTML in an ng-embed shown as text instead of rendered HTML #39
Comments
I will have to make this optional. Will add this in the next release. Just a bit busy with other projects. |
Thank you, looking forward to this enhancement! |
Since adding sanitizeHtml option ngEmbed can render html. I'm not sure it can render any html but simple tags like |
I am in struggle because I need to use tag and it doesn't works. Update 1: You can take a look at my directive.
And then use it like that.
Where Update 2: Filter example in the controller before sending the message to the view:
|
Hi,
I noticed after #15 inputting HTML into a div that is using ng-embed does not render the HTML but instead it is shown as text. Is there any way to support inputting HTML using ng-embed? I currently have comments panel where a user can be mentioned, these mentions are detected and wrapped in anchor tags with the appropriate classes. Removing the sanitize code renders the HTML correctly because < and > are not encoded. Would it be possible to fix this by decoding the encoded HTML just before returning the input (after insertFontSmiley, insertEmoji etc has been called). Thanks.
Kind regards,
Rishi.
The text was updated successfully, but these errors were encountered: