This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private string ellipsesForHighlights(string highlight, string original) | |
| { | |
| //remove html in highlight | |
| string stripped_highlighted_item = StripHtml(highlight); | |
| // if the beginning of the highlighted text doesn't match the original, it has been clipped | |
| int tmp = original.IndexOf(stripped_highlighted_item); | |
| bool front_ellipsis = tmp != 0; | |
| // if the last 10 characters of the highlighted text doesn't match the original, it has been clipped |