WYSIWYG and Code Generator > Detail Page

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 6, 2018   (RSS)

By Dave - March 5, 2018

Hi Kenny, 

For regular fields, you'd want to show < and > as those characters, which is what htmlencode() does.  It replaced < with the html entity &lt; and so on.

But for WYSIWYG fields you want the HTML tags to show as is without additional formatting so you just want to remove the htmlencode() function so it displays the < and > without encoding them so HTML tags display as intended.  eg: <?php echo $record['content_area']; ?>

Let me know if that works for you!

Dave Edis - Senior Developer
interactivetools.com

By Twocans - March 6, 2018

Haha 

What a silly mistake on my behalf. 

Thanks very much ok. it is now working as required.

cheers

Kenny