tenants
Well-known member
Can anyone see what it is about convertEditorHtmlToBbCode that converts multi-line text into single line
This out puts:
three
lines
of string
three lines of string
The reason I want to use convertEditorHtmlToBbCode directly (instead of ->getMessageText) is that my data comes in from an array (in this case it has to)
So, I can't use "getMessageText($inputName, XenForo_Input $input, $htmlCharacterLimit = -1)"
Since my message is not an inputName in the XenForo_Input, it is part of
$this->_input->filterSingle('fields', XenForo_Input::ARRAY_SIMPLE)
Code:
$cell = "three
lines
of string";
var_dump($cell);
$cell = $this->getHelper('Editor')->convertEditorHtmlToBbCode($cell, $this->_input); // now safe for raw
var_dump($cell); // multi-lines getting converted to one line
This out puts:
three
lines
of string
three lines of string
The reason I want to use convertEditorHtmlToBbCode directly (instead of ->getMessageText) is that my data comes in from an array (in this case it has to)
So, I can't use "getMessageText($inputName, XenForo_Input $input, $htmlCharacterLimit = -1)"
Since my message is not an inputName in the XenForo_Input, it is part of
$this->_input->filterSingle('fields', XenForo_Input::ARRAY_SIMPLE)
Last edited: