I almost solved my problem in this question. Now I must find a way to override the default blade escape function.
I think there's a way to create a class that extends and override the behavior of BladeCompiler class, this way I could make something like this:
class MyCustomCompiler extends BladeCompiler{
function compileEscapedEchos($value){
return parent::compileEscapedEchos(utf8_encode($value));
}
}
If I could do it, I only must make laravel use MyCustomCompiler instead BladeCompiler. How can I do it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…