Welcome Guest, Not a member yet? Register   Sign In
TinyMCE in CI : how to stop converting HTML tags? [solved]
#1

[eluser]moonbeetle[/eluser]
When I insert some text (in a textarea that's replaced by TinyMCE)and do some basic formatting like adding paragraphs, putting text in bold or italics everything looks good but when I look what's stored in the database I noticed that all tags have been converted.

The < and > in HTML tags get converted into their HTML entities

Code:
&lt;textarea name='full' id='full' rows="25"&gt;&lt;?php echo htmlentities($this->validation->full);?&gt;&lt;/textarea&gt;

The validation rule had 'htmlentities' in it, causing all tags to be converted.




Theme © iAndrew 2016 - Forum software by © MyBB