Question
1
Replies
239
Views
Crochet Technologies Pvt Limited
Posted: May 2, 2018
Last activity: May 3, 2018
Closed
Solved
How to delete < meta > tag from the HTML snippet
could you help me in deleting the <meta> tag from the following structure:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
</body>
</body>
</html>
I am currently trying to use the regex in a activity step : <meta name="keywords"[^>]+>
could you suggest any alternative (better) approach.
thanks in advance
You can use the regular expression as follows to remove Meta tag:-
@pxReplaceAllViaRegex(Param.PropertyName,"<meta[^>]+>","")
Other approach you can use is creating xslt to parse your html.