cómo convertir html en texto en angular

text.replace(/<[^>]*>/g, '');
 Run code snippet
souheyla changuel