Compare commits

...

2 commits

Author SHA1 Message Date
xfnw 854aa79255 clean up css a bit 2022-02-24 19:01:20 -05:00
xfnw 34b11fa5af fix mdash not being htmldecoded 2021-12-11 12:50:41 -05:00
2 changed files with 4 additions and 19 deletions

View file

@ -17,31 +17,15 @@ margin: 0 auto;
}
a {
color: #aac;
color: #3291FF;
}
h1 a {
text-decoration: none;
color: #cdcdcd;
}
h1 a::before {
content: "#";
color: #aac;
margin-right: 10px;
}
h1 a:hover::before {
text-decoration: underline;
}
.preview h1, h2 {
h2 {
margin: 0;
padding: 0;
margin-bottom: 5px;
}
.search-container input[type=text] {
padding: 6px;
margin-top: 3px;
@ -90,3 +74,4 @@ margin-bottom: 5px;
.icon-search:before {
content: "\e986";
}

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)))]);
}