Essentially I need a function written in C# that will compare two html strings and return a third string containing a Wikipedia like two column view that shows the difference between the strings. So basically the function would?
Step 1: Take in the two strings to be compared
Step 2: Strip any bold tags from the strings
Step 3: Compare the strings and determine the differences
Step 4: Build a string to be returned that contains a two column html page displaying the difference (see return string details below)
Step 5: Return that string
On the returned string, I basically want it to mirror Wikipedia's functionality as closely as possible but I'm using css so I'd like to use custom tags. Ideally I'd like the function to take each change, grab the paragraph the change takes place in as well as the paragraphs immediately before and after. Then tag the paragraphs without changes with a "unchangedtext" tag while the text that has been changed would be tagged with a "prechangetext" and "postchangetext" respectively (see attached diagram). I'd like the actual text changes to be highlighted in bold.
I'd also like it to list the line number that the changes occur on (as shown)
I know this description probably isn't as clear as it could be but please feel free to post any questions.