There was a previous PR which allowed for the message to be included in <script> and other places by adding slashes. The correct method to use here is not htmlspecialchars but addslashes which also allows HTML to continue to work as the former converts < and > to HTML entities.
There was a previous PR which allowed for the message to be included in
<script>
and other places by adding slashes. The correct method to use here is nothtmlspecialchars
butaddslashes
which also allows HTML to continue to work as the former converts<
and>
to HTML entities.