]> _ Git - fluidbook-toolbox.git/commitdiff
wait #7542 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 23 Jun 2025 14:11:28 +0000 (16:11 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 23 Jun 2025 14:11:28 +0000 (16:11 +0200)
app/Fluidbook/Compiler/Accessibility.php

index 819ce239bdee20f19b174e4dbaeac60c8ff24ae1..9cc331c6d1bd8775ea90620c56115628499155e8 100644 (file)
@@ -66,6 +66,7 @@ trait Accessibility
                     $voice = $e[1];
                 }
 
+                $text = strip_tags($text, '<break><say-as><audio><p><s><sub><mark><prosody><emphasis><par><seq><media><phoneme><voice><lang>');
                 $hash = hash('sha256', $engine . ':' . $voice . '_^_' . $text);
                 $fname = $hash . '.mp3';
                 $dir = Files::mkdir($this->getFluidbook()->protected_path('audiodescription'));