We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Rich Text Area in Grid doesn't convert HTML entities back to rendered HTML in 'Content' view

Developer Preview

DigitalDoctors's avatar
DigitalDoctors
76 posts
12 years ago
DigitalDoctors's avatar DigitalDoctors

Hey Guys

I just tried to use an ‘Rte Field’ in a ‘Grid Field’ and after publishing an entry I went back to edit the grid to see HTML entities rather than HTML in the ‘Rte Field’’s ‘Content View’

To remedy this I changed line 570 in ExpressionEngine RTE Module Library ‘(rte_lib.php)’ found in system\expressionengine\modules\rte\libraries\Rte_lib.php from

$data = htmlspecialchars($data, ENT_QUOTES);

to…

$data = htmlspecialchars_decode($data, ENT_QUOTES);

I’m not saying this is a fix as I have never needed to dive into the Rte code and have no idea on its inner workings it scary stuff 😉

eg. i’m not sure if there is Javascript not being triggered that is meant to convert the entities for view or whats happening but wanted to bring it to your attention.

Look forward to the proper fix.

Cheers guys

EE 2.7.0 (last updated 2013-07-31)

       
Kevin Cupp's avatar
Kevin Cupp
791 posts
12 years ago
Kevin Cupp's avatar Kevin Cupp

Thanks for bringing this to our attention, Digital Doctors. It ended up being a CodeIgniter bug, and then an encoding bug similar to what you have found but the fix was a bit more complicated to include here. Hopefully we’ll get another dev preview build out with the fix and you can let us know if you’re still having this problem. Thanks again!!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.