Skip to content

Commit 90ae836

Browse files
committed
change
1 parent f94096f commit 90ae836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

speech/src/transcribe_sync.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
$confidence = $mostLikely->getConfidence();
7070
printf('Transcript: %s' . PHP_EOL, $transcript);
7171
$result = Array();
72-
$result['result'] = htmlentities((string)$transcript);
72+
$result['result'] = htmlentities(stripslashes(utf8_encode($transcript)), ENT_QUOTES);;
7373
echo json_encode($result);
7474
break;
7575
// printf('Confidence: %s' . PHP_EOL, $confidence);

0 commit comments

Comments
 (0)