• Page:
  • 1

How to make Joomla 3.0 rich text editor allow HTML?

OFFLINE

How to make Joomla 3.0 rich text editor allow HTML?

4 weeks ago
Be aware that JRequest::GET by default filters all HTML-code down to plain text, which might not be very useful when using the editor. To store HTML-code within your model class you MUST explicitely request HTML-Code from the JRequest-Object, otherwise all HTML will be stripped.

Use :

JRequest::getVar( 'yourfieldname', '', 'post', 'string', JREQUEST_ALLOWHTML );

Also,

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.
The following user(s) said Thank You: Rajat Pal, Ramratan Singh, Aadarsh Jain, Ashna Sushilan
ONLINE

Re: How to make Joomla 3.0 rich text editor allow HTML?

4 weeks ago
use JREQUEST_ALLOWRAW instead, JREQUEST_ALLOWHTML many times adds junk characters
The following user(s) said Thank You: Rajat Pal, Khurram Shaikh, Ramratan Singh
  • Page:
  • 1

Upcoming Events

Who's Online