fix mdash not being htmldecoded

This commit is contained in:
xfnw 2021-12-11 12:50:41 -05:00
parent 9acb68d457
commit 34b11fa5af

View file

@ -55,5 +55,5 @@ foreach ($arg as $url) {
echo "title: ".$title."\n";
$stmt = $db->prepare('INSERT INTO indexed (title, url, content) VALUES (?, ?, ?)');
$stmt->execute([htmlspecialchars(htmlspecialchars_decode($title)), htmlspecialchars(htmlspecialchars_decode($url)), htmlspecialchars(htmlspecialchars_decode($document))]);
$stmt->execute([htmlspecialchars(str_replace('—','—',htmlspecialchars_decode($title))), htmlspecialchars(str_replace('—','—',htmlspecialchars_decode($url))), htmlspecialchars(str_replace('—','—',htmlspecialchars_decode($document)))]);
}