一个简单的问题:如何在 Silex 中获得有效的换行符?
以下代码将为我提供输出
This ist a Text.<br> Next Line
.
$app->get('', function () use ($app) {
$content= 'This ist a Text. <br> Next Line';
return $app['twig']->render('index.html.twig', array(
'content' => $content
));
});
我如何获得有效的换行符?