Disabled href tag

There is no disabled attribute for hyperlinks. If you don’t want something to be linked then you’ll need to remove the <a> tag altogether. Alternatively you can remove its href attribute – though this has other UX and Accessibility issues as noted in the comments below so is not recommended.

Strip HTML from Text JavaScript

If you’re running in a browser, then the easiest way is just to let the browser do it for you… Note: as folks have noted in the comments, this is best avoided if you don’t control the source of the HTML (for example, don’t run this on anything that could’ve come from user input). For … Read more