fix mdash not being htmldecoded
This commit is contained in:
parent
9acb68d457
commit
34b11fa5af
1 changed files with 1 additions and 1 deletions
|
@ -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)))]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue