I have 1 string contaning html and one string contaning css is there any way to remove all class attributes with style attributes based on the rules in the css string.
The reason i have for doing this is that i want to send the html as mail but gmail does not support style or link tags so my only option left is to use the style attribute but i would rather not bloat my html with the style attribute, is there any .net component out there that does this automatically?
Well after looking around i found the following 3 resources
By combing those i managed to complete the task!