             }
             
             cell.image_view.downloadByImageUrl(item.msg.substringFromIndex("[image]".endIndex))
+        }
+        else if item.msg.containsString("[html]") {
+            if item.sender == device_id {
+                cell = self.tableView.dequeueReusableCellWithIdentifier("send_text")! as! TextTalkCell
+            }
+            else {
+                cell = self.tableView.dequeueReusableCellWithIdentifier("recv_text")! as! TextTalkCell
+            }
+            
+            let htmlText = item.msg.substringFromIndex("[html]".endIndex)
+            
+            let encodedData = htmlText.dataUsingEncoding(NSUTF8StringEncoding)!
+            
+            let attributedOptions : [String : AnyObject] = [
+                NSDocumentTypeDocumentAttribute : NSHTMLTextDocumentType,
+                NSCharacterEncodingDocumentAttribute: NSUTF8StringEncoding,
+                ]
+            
+            do {
+                let attributedString = try NSAttributedString(data: encodedData, options: attributedOptions, documentAttributes: nil)
+                
+                cell.textView.attributedText = attributedString
+                cell.textViewWidthConstraint.constant = UIScreen.mainScreen().bounds.size.width*0.7
+                cell.textView.delegate = self
+            }
+            catch {
+                print("error")
+            }
         }
         else {
             if item.sender == device_id {

        //        tableView.setContentOffset(currentOffset, animated: false)
    }
    
    // MARK - Etc Function
    func scrollToLast() {
        let last_item_index = items.count-1

    }
    
    @IBAction func pressedShortText(sender: AnyObject) {
        let htmlText: String =
            "폰트컬러 블루<font color=\"blue\">파랑</font>선택선택선택선택선택선택선택선택선택선택。<br>" +
                "폰트컬러 레드<font color=\"red\">빨강</font>선택。<br>" +
                "<hr width=\"100%\" size=\"1\" noshade>" +
                "타이드스퀘어<a href=\"http://www.tidesquare.com/\"><strong>홈페이지</strong></a><br>" +
        "CSS Style<strong style=\"color:#663399;\">#663399</strong>...。"
        
        manager.sendData("[html]\(htmlText)".dataUsingEncoding(NSUTF8StringEncoding), topic: "\(mqttSettings["base"]!)/\(device_id)", qos: .ExactlyOnce, retain: false)
    }
    
    @IBAction func pressedImageUrl(sender: AnyObject) {
