1
Good morning guys, when pulling the html of the entire page in string it also brings some reference links:
<link href="~/Content/item/item.min.css" rel="stylesheet" />
I already removed the tags and , but I need to remove this and I’m not getting, the code I use to remove the script and style tags is this:
var regex = new Regex("(\\<script(.+?)\\</script\\>)|(\\<style(.+?)\\</style\\>)",
RegexOptions.Singleline | RegexOptions.IgnoreCase);
HTMLemString = regex.Replace(HTMLemString, "");
If anyone can help me I’d appreciate it.
What you want to leave?
– Marconi
All HTML but without these CSS links
– Brayan
Ttenta essa regex: <link[ >]*> ela da match com todas as tags <link/>
– Mathiasfc
worked thanks :D
– Brayan