Fix pspell's handling of special html characters (#1485744)

release-0.6
svncommit 16 years ago
parent ad56004cd6
commit e5dd92490c

@ -37,6 +37,7 @@ $data = file_get_contents('php://input');
$left = strpos($data, '<text>');
$right = strrpos($data, '</text>');
$text = substr($data, $left+6, $right-($left+6));
$text = html_entity_decode($text, ENT_QUOTES);
// tokenize
$words = preg_split('/[ !"#$%&()*+\\,-.\/\n:;<=>?@\[\]^_{|}]+/', $text, NULL, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_OFFSET_CAPTURE );

Loading…
Cancel
Save