Fixed typo in refresh and added html_entity_decode() to twt parsing

This commit is contained in:
sørenpeter 2024-12-13 15:57:23 +01:00
parent 67dae996c5
commit 00246b2b20
3 changed files with 5 additions and 2 deletions

View file

@ -506,6 +506,9 @@ function getTwtsFromTwtxtString($url) {
$twtContent = str_replace("(#$hash)", '', $twtContent);
}
// Convert HTML entities to their corresponding characters
$twtContent = html_entity_decode($twtContent);
// TODO: Make ?tag= filtering feature
$twtContent = replaceTagsFromTwt($twtContent);

View file

@ -68,7 +68,7 @@ foreach ($twtFollowingList as $following) {
// Javascript for updating the progress bar and information
echo "<script language=\"javascript\">
document.getElementById(\"refreshURL\").innerHTML = \"$feed\";
document.getElementById(\"refreshCounter\").innerHTML = \"($i of $total.')\";
document.getElementById(\"refreshCounter\").innerHTML = \"($i of $total)\";
document.getElementById(\"refreshProgress\").value = \"$float\";
document.getElementById(\"refreshProgress\").innerHTML = \"$percent\";
</script>";