-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ID attribute from link gets filtered out #355
Comments
I'm not sure, probably something to do with the sanitizer (taSanitize or in textAngular-sanitize). I'll look into this in the next couple of weeks hopefully. Could you give some more specific steps to reproduce this just to help me get started quicker when I get around to it please? Also it might be good to have a look over at the main angular repo to see if anyone has this issue in the main angular-sanitize. |
I can +1 this, in my usecase, I add an element (img tag) with some Reproduction steps on http://textangular.com in your browser console with
Focus in-and-out from the HTML editor to trigger sanitize and see the result inside the HTML-content field below the editor. x-as-class is kept, x-as-data gets removed. Not sure if it can be abused but IMHO data- tags should not be removed from inserted nodes. Anyways, on this issue I have a question for you @SimeonC. My user-input gets sanitized in back-end anyways and the editor gets always started without content. I think I could just skip the whole sanitizer, or am I missing something? Could you link something how to do that (skip sanitize)? edit Just found setting |
My use case |
Looking through the sanitizer the id attribute is not in the whitelist, I'm still waiting on the main repo to implement the ability to modify the whitelist without being forced to edit the source. I'll need to have a quick look around to try figure out why id is sanitized, if I can't find an acceptable reason and or workaround I'll just enable it by default. @burninggramma In the 1.3.0-preX releases and in 1.3.0 when I release it, has support for a |
@SimeonC well, it works for me with 1.2.2 [: |
Hello,
When i use
I get the following back:
Why is the id stripped? It is allowed in the HTML specifications
Same happens to divs, spans, etc
The text was updated successfully, but these errors were encountered: