mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-15 19:07:01 +00:00
Fixed typo in refresh and added html_entity_decode() to twt parsing
This commit is contained in:
parent
67dae996c5
commit
00246b2b20
3 changed files with 5 additions and 2 deletions
|
|
@ -506,6 +506,9 @@ function getTwtsFromTwtxtString($url) {
|
||||||
$twtContent = str_replace("(#$hash)", '', $twtContent);
|
$twtContent = str_replace("(#$hash)", '', $twtContent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Convert HTML entities to their corresponding characters
|
||||||
|
$twtContent = html_entity_decode($twtContent);
|
||||||
|
|
||||||
// TODO: Make ?tag= filtering feature
|
// TODO: Make ?tag= filtering feature
|
||||||
$twtContent = replaceTagsFromTwt($twtContent);
|
$twtContent = replaceTagsFromTwt($twtContent);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ foreach ($twtFollowingList as $following) {
|
||||||
// Javascript for updating the progress bar and information
|
// Javascript for updating the progress bar and information
|
||||||
echo "<script language=\"javascript\">
|
echo "<script language=\"javascript\">
|
||||||
document.getElementById(\"refreshURL\").innerHTML = \"$feed\";
|
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\").value = \"$float\";
|
||||||
document.getElementById(\"refreshProgress\").innerHTML = \"$percent\";
|
document.getElementById(\"refreshProgress\").innerHTML = \"$percent\";
|
||||||
</script>";
|
</script>";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue