| | |
| | | $matches = $this->_getMatches($lang, $word);
|
| | |
|
| | | if (count($matches) > 0)
|
| | | $sug = explode("\t", utf8_encode($this->_unhtmlentities($matches[0][4])));
|
| | | $sug = explode("\t", $this->_unhtmlentities($matches[0][4]));
|
| | |
|
| | | // Remove empty
|
| | | foreach ($sug as $item) {
|
| | |
| | | }
|
| | |
|
| | | // Setup XML request
|
| | | $xml = '<?xml version="1.0" encoding="utf-8" ?><spellrequest textalreadyclipped="0" ignoredups="0" ignoredigits="1" ignoreallcaps="1"><text>' . $str . '</text></spellrequest>';
|
| | | $xml = '<?xml version="1.0" encoding="utf-8" ?>\ |
| | | <spellrequest textalreadyclipped="0" ignoredups="0" ignoredigits="1" ignoreallcaps="1"><text>' . $str . '</text></spellrequest>';
|
| | |
|
| | | $header = "POST ".$path." HTTP/1.0 \r\n";
|
| | | $header .= "MIME-Version: 1.0 \r\n";
|