Say I am passing the text "Sample Text" from code.
I have a html document which has following code
Code
Sample TextI need to get the result as sampleclass when Sample Text is passed.
What I have tried:I have used HTMLAgility library , I can get the text based on class name but I need the other way around to get class name when text is passed.


Vignesh ManiRank #98 · 22.1K reputationPosted Jan 9, 2017, 1:16 PM EST