I get plain text strings from a software (no html) which contains css sequences like this:
Some plain text...
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.afooter {
color: #fff !important;
}
Some other plain text...
How can I remove these sequences? To me it looks like css, however, it is not surrounded by css script tag. The result I'm expecting is:
Some plain text...
Some other plain text...
I tried to create a html like string by adding <html><body>MY PLAIN TEXT</body></html>
and checked if I can remove it using the HtmlAgilityPack. However, the sequences are not parsed as css node since they are part of the plain text (not surrounded by any tags) for some reason.