У меня есть textarea
где пользователь будет набирать текст. Текст не может быть JavaScript или HTML и т.д. Я хочу вручную обработать данные и сохранить их в строку.
Я не могу понять, как использовать DomSanitizationService
для ручной DomSanitizationService
моих данных.
Если я сделаю {{ textare_text }}
на странице, то данные будут правильно очищены.
Как мне сделать это вручную для string
я имею?