How can I trim a text string in my Angular application?
Example
{{ someobject.name }}
someobject.name results in \"name abc\"
According to the docs, the trim() method removes trailing and leading whitespaces, not those in the middle.
https://www.w3schools.com/Jsref/jsref_trim_string.asp
If you want to remove all whitespaces use the replace function:
replace
"name abc".replace(/\s/g, "");