public function getMessageText($inputName, XenForo_Input $input, $htmlCharacterLimit = -1)
if ($messageTextHtml !== '')
{
if ($htmlCharacterLimit < 0)
{
$htmlCharacterLimit = 4 * XenForo_Application::get('options')->messageMaxLength;
// quadruple the limit as HTML can be a lot more verbose
}
if ($htmlCharacterLimit && utf8_strlen($messageTextHtml) > $htmlCharacterLimit)
{
throw new XenForo_Exception(new XenForo_Phrase('submitted_message_is_too_long_to_be_processed'), true);
}