S
S
semki0962019-05-09 17:32:45
Twig
semki096, 2019-05-09 17:32:45

How to remove line breaks in twig?

I want to turn body into a string {{ body }}, how to remove line breaks?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
semki096, 2019-05-09
@semki096

{{ body|e('js') }}
You can see it here https://twigfiddle.com/1jixsr

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question