If you need to get HTML code from JRequest then you need to use special parameter:
JREQUEST_ALLOWHTML
Example (Joomla! 1.6.x-3.x) ↓
$value = JRequest::getVar( 'field_name', '', 'post', 'string', JREQUEST_ALLOWHTML );
Note ↓
- JREQUEST_NOTRIM – prevents trimming of whitespace
- JREQUEST_ALLOWRAW – bypasses filtering
- JREQUEST_ALLOWHTML – allows most HTML. If this is not passed in, HTML is stripped out by default.