angular-md icon indicating copy to clipboard operation
angular-md copied to clipboard

Can not parse html code

Open thatisuday opened this issue 9 years ago • 1 comments

This sounds very strange as this works in your demo.

I am trying to parse

```<span>Hey there...</span>```

but this output to only Hey there and span tags are removed. This must be because angular sanitizing the generated code by marked parser. Is there any way to handle this?

thatisuday avatar Jul 17 '16 19:07 thatisuday

Found. It won't work inline because you are retrieving markdown content from directive element using $elem.text() which will strip html tags. $elem.html() would work, but don't know if that will lead to any consequences. I am sticking with ng-model approach.

thatisuday avatar Jul 17 '16 19:07 thatisuday