HTML text was stored in database. Text contains anchor links like
<a href="#id">click</a>
---------
---------
<h1 id="id">sample </h1>
We are retriving this html content from database to render in angular 6+ page. Content rendered fine but if we click anchor it navigated to 'http://localhost:3000/#id' in browser and displays error page since its not available in routing.
How can we restrict default routing and how to make internal anchor linking work in this type of scenario without modifying html content in database.
Is there any possibility in angular 6+ ?