You will see I can not successfully escape a script inside an echo, here is my code but I can not make it work, if any could give me an example
echo '
// Initialize tooltip component
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
</script>
</html>';