In my angular app, On init I want to check if there are any keywords and if there are replace them with data I have stored.. but when I do
const innerHtml = <HTMLElement>document.querySelector('.inner-html');
innerHtml.replace(...);
I get this error [ts] Property 'replace' does not exist on type 'HTMLElement'
How can I use str.replace() in typescript??
Ive looked around and I cant find any reference to .replace() and this error
any help would be appreciated!