This
is horrible.
What
is missing?
Has
something been dropped from joomla to stop html code?
I am
logged in as the su admin user and filtering is set to no
filter.
$app =
JFactory::getApplication();
$data =
$app->input->post->get('question_wording', array(),
'array');
print_r($data[0]);
This
is the ONLY code that will get my html code from the posted
info.
Where
are we going wrong?
I
tried ALL of these variations from the class file, Only array worked. I
would have expected HTML to have worked.
//
print_r($input->post->get('question_wording',null,'html')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'int')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'integer')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'uint')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'float')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'double')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'bool')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'boolean')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'word')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'alnum')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'cmd')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'base64')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'string')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'array')[0]); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'path')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,'username')); echo
'<p>';
//
print_r($input->post->get('question_wording',null,null)); echo
'<p>';
I also
note at the top of the /libraries/joomla/input/input.php file the following
comments:
* @method integer
getInt() getInt($name, $default =
null) Get a signed integer.
*
@method integer
getUint() getUint($name, $default =
null) Get an unsigned integer.
*
@method float
getFloat() getFloat($name, $default = null) Get a
floating-point number.
* @method
boolean getBool() getBool($name, $default =
null) Get a boolean.
*
@method string
getWord() getWord($name, $default =
null)
* @method string
getAlnum() getAlnum($name, $default = null)
*
@method string
getCmd() getCmd($name, $default =
null)
* @method string
getBase64() getBase64($name, $default = null)
*
@method string
getString() getString($name, $default = null)
*
@method string
getHtml() getHtml($name, $default =
null)
* @method string
getPath() getPath($name, $default =
null)
* @method string
getUsername() getUsername($name, $default = null)
I
don't see a getHtml function defined ANYWHERE in the whole of the joomla system,
So why would this text be here?
Yours
Sincerely
Rob
Joyce