Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not parse html code #6

Open
thatisuday opened this issue Jul 17, 2016 · 1 comment
Open

Can not parse html code #6

thatisuday opened this issue Jul 17, 2016 · 1 comment

Comments

@thatisuday
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant