summaryrefslogtreecommitdiff
path: root/app/Libraries
diff options
context:
space:
mode:
authorhorus2021-01-03 16:24:43 +0100
committerhorus2021-01-03 16:24:43 +0100
commita2cb34aa3707a5542e0b505e6ae963d9cc54d668 (patch)
tree8539036e4cfdcc7feefe431159bd93cb1f408afc /app/Libraries
parent3f0c4e74b919ba658ac7c1a0a08594b75bc461d7 (diff)
downloadsenpai-a2cb34aa3707a5542e0b505e6ae963d9cc54d668.tar.gz
Add annoying malformed HTML.
Diffstat (limited to 'app/Libraries')
-rw-r--r--app/Libraries/Background.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Libraries/Background.php b/app/Libraries/Background.php
index e89e00c..5ec6ef6 100644
--- a/app/Libraries/Background.php
+++ b/app/Libraries/Background.php
@@ -231,6 +231,9 @@ class Background {
if ( ! is_null( $enhancement->duration ) ) {
$update["duration"] = $enhancement->duration;
}
+ if ( isset( $update["synopsis"] ) ) {
+ $update["synopsis"] = str_replace('<i/>', '</i>', $update["synopsis"]);
+ }
#echo "Updating " . $anime->title_pref . " (" . $anime->mal_id . ")\n";
DB::table('anime')