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 main coding language is Google Apps Script (with JavaScript), but there is also some: PowerShell, HTML, SQL and jQuery.
Screenshot of cell containing HTML tags and text |
var cleanContent = cell.replace(/<[^>]+>/mg,"");
No comments:
Post a Comment