您的位置:首页 > Web前端 > HTML

VB.NET 美化HTML代码

2014-04-14 10:27 232 查看
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim web As New Net.WebClient
Dim content As String
web.Headers("Content-Type") = "application/x-www-form-urlencoded"
web.Headers("Referer") = "http://tool.lu/html/"
content = web.UploadString("http://tool.lu/html/ajax.html", "operate=beauty&code=" & Uri.EscapeDataString(RichTextBox1.Text))
content = Replace(content, "{""status"":true,""message"":"""",""text"":""", "")
content = Replace(content, """}", "")
content = System.Text.RegularExpressions.Regex.Unescape(content)
RichTextBox1.Text = content
End Sub
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: