/// <summary>
/// 檢查文本中div開始和結束標簽數是否相同
/// </summary>
/// <param name="html">輸入的html文本</param>
/// <returns></returns>
public bool HoverTreeDivCheck(string html)
{
int h_divStartCount, h_divEndCount;
h_divStartCount = html.Length - html.ToLower().Replace("<div", "div").Length;
h_divEndCount = html.Length - html.ToLower().Replace("</div", "/div").Length;
return (h_divStartCount == h_divEndCount);
}