Commit 5a2cae97 authored by arnaudbey's avatar arnaudbey
Browse files

remove html stuff from definition

parent 044d110b
......@@ -26,7 +26,7 @@ class WiktionaryManager
if (preg_match_all('/<li>(.*?)<\/li>/s', $definitions, $matches)) {
$definitions = $matches[1];
$key = array_rand($definitions);
$definition = $definitions[$key];
$definition = strip_tags($definitions[$key]);
return $definition;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment