Remove HTML with Perl Regular Expression


/ Published in: Perl
Save to your folder(s)

Use this code to remove HTML from a string.


Copy this code and paste it in your HTML
  1. $cleancode =~ s/<(.*?)>//gi;

Report this snippet


Comments


You need to login to view comments.