fix: small tweaks (#4057)

This commit is contained in:
Dag 2024-04-04 19:12:04 +02:00 committed by GitHub
parent 3cba984d22
commit 001dd47439
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 44 deletions

View file

@ -21,6 +21,10 @@ class GatesNotesBridge extends BridgeAbstract
$rawContent = getContents($apiUrl);
$cleanedContent = trim($rawContent, '"');
$cleanedContent = str_replace([
'<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">',
'</string>'
], '', $cleanedContent);
$cleanedContent = str_replace('\r\n', "\n", $cleanedContent);
$cleanedContent = stripslashes($cleanedContent);