Screenshot of cell containing HTML tags and text |
The regex uses 'replace' to identify the HTML tags and remove then (or technically replace them with nothing):
var cleanContent = cell.replace(/<[^>]+>/mg,"");
Regex - remove HTML tags.xlsx
I'm Phil Bainbridge and I aim to share my experiences of IT projects I've worked on as I continue to learn and develop, through this blog. My current languages include: PowerShell, Google Apps Script, JavaScript, HTML, SQL and jQuery.
Screenshot of cell containing HTML tags and text |
var cleanContent = cell.replace(/<[^>]+>/mg,"");
No comments:
Post a comment