Jak przekonwertować HTML na tekst w kąt

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