<script>

        const phpSearchText = <?php echo $search_text2; ?>; 

</script>