I´ve try with casset... but all of these include the string "<script src='.../bootstrap.js'></script>" or include like this: <script src="<script src="../bootstrap.js"></script>"></script>
You didn't understand. The url is fine. If I copy and paste in URL it´s work. My problem is: don´t include the tag script, its print the string. Like string.
Ah, you have the logic in the controller, and you pass that on to the View?
I don't know twig, but I assume that it encodes return values of functions if you get the literal string in your output. I don't know twig, I've never used it, so I can not comment on that.
edit: I've quickly scanned the twig docs. It could be that you have an autofilter enabled that escape all values returned by a function.