Example #1
0
 public function plaintext()
 {
     $h2t = new HtmlToText($this->getRequest()->get('html'), array('enableInlineLinks' => true, 'enableLinkList' => false));
     return new JSONResponse(array('plaintext' => $h2t->get_text()), 'ok');
 }