swift string转为html,将字符串编码为HTML字符串Swift 3
func testEscape()throws {let text = "Hello &<> Å å π 新 there ¾ © »"let escapedAscii = Entities.escape(text, OutputSettings().encoder(String.Encoding.ascii).escapeMode(Entities.EscapeMode.bas...