Beispiel #1
0
        public static string TranslateToHtmlString(string str, int num)
        {
            string letter = MdStringHelper.GetLetter(str, num, false);

            return(MdStringHelper.StringToHtml(letter));
        }
Beispiel #2
0
        /// <summary>
        /// 截取长度并转换为HTML
        /// </summary>
        /// <param name="str"></param>
        /// <param name="num"></param>
        /// <returns></returns>
        public static string AcquireAssignString(string str, int num)
        {
            string letter = MdStringHelper.GetLetter(str, num, false);

            return(MdStringHelper.StringToHtml(letter));
        }