i'm trying to view inside page.html file some data comes from API and this data is only long text encode via base64 , well the problem is i want to decode the text inside html file not at page.ts file so i tried many logic for that but nothing works with me . example inside HTML file:
- {{item.text|| base64}}
- {{item.text|| decodeURIComponent}}
- {{item.text|| atob}}
- atob({{item.text}})
but nothing works . inside TS page i tried to use decodeURIComponent(escape(window.atob(ielement.text))) and it's working but i want from html page
this is the text comes from API : aGVsbG8gd29ybGQh
thanks in advance ..