Angular Web Component Example: Controlling the anchors inside HTML produced by Rich Text Editor

Suppose the content editors of your application are preparing content of the application in a Rich Text editor where they are adding links to other pages (internal as well as external). Now you want to control the clicks on those links for various reasons like:

  1. Show some message on page when a link is…