D
D
DeniSidorenko2020-05-15 14:40:45
opencart
DeniSidorenko, 2020-05-15 14:40:45

How to add br or line break in store settings text area?

in the settings of the store there is an opportunity to leave a comment. How to add br there, otherwise the text will turn into one big mess

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VVCh, 2020-05-16
@VVCh

$data['comment'] = $this->config->get('config_comment');

$data['comment'] = nl2br($this->config->get('config_comment');)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question