(string s, bool isHtmlBlock)
| 698 | } |
| 699 | |
| 700 | private static string GetHashKey(string s, bool isHtmlBlock) |
| 701 | { |
| 702 | var delim = isHtmlBlock ? 'H' : 'E'; |
| 703 | return "\x1A" + delim + Math.Abs(s.GetHashCode()).ToString() + delim; |
| 704 | } |
| 705 | |
| 706 | private static Regex _htmlTokens = new Regex(@" |
| 707 | (<!--(?:|(?:[^>-]|-[^>])(?:[^-]|-[^-])*)-->)| # match <!-- foo --> |