Why aren't html tags removed in textarea?

  • 0
    Why aren't html tags removed in textarea?
    & lt; textarea class = "js-redactor" & gt; & lt; / textarea & gt;
    $('.js-redactor').on('change', function(){
    	var redactorText = $(this).val();
    	var regex = /(<([^>]+)>)/ig;
    	redactorText = redactorText.replace(regex, "");
    });
    JavaScript Declan Wade, May 22, 2019

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!