question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

github_iconTop GitHub Comments

pkozlowski-opensourcecommented, Sep 22, 2016

I don’t think you want to trick sanitization here. If you are using a link that has a click event and it shouldn’t trigger navigation just prevent default action on the event, ex.:

  • <a (click)="$event.preventDefault(); doSth()"> or even shorter
  • <a (click)="!!doSth()">
1reaction
jsgoupilcommented, Mar 31, 2017

A link without a href tag is not considered clickable.

If the href attribute is absent, then the element does not define a link.

Firefox will be happy to not put the right cursor for <a> tags missing a href.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WARNING: sanitizing unsafe style value url - Stack Overflow
This is the warning I see in my console (I have changed my img url to /img/path/is/correct. png : WARNING: sanitizing unsafe style...
Read more >
2 ways to fix WARNING: sanitizing unsafe URL value in Angular
This HTML binding throws WARNING: sanitizing unsafe URL value because of href="javascript:alert('safe html').
Read more >
DomSanitizer - Angular
DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing values to be safe to use in the different DOM contexts.
Read more >
unsafe value used in a resource url context
Overview. Sanitizes an html string by stripping all potentially dangerous tokens. The input is sanitized by parsing the HTML into tokens. All safe...
Read more >
sanitizing unsafe URL value data:text/html;base64,-angular.js
Coding example for the question WARNING: sanitizing unsafe URL value data:text/html;base64,-angular.js.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found