WYSIWYG and Code Generator > Detail Page
First off I use the wysiwyg and enter 2 paragraph.
ON using the code generator for my detail page output I have
<?php echo htmlencode($record['content_area']) ?>
But the output when the page is viewed on a browser shows the <p> and </p> as part of the unformatted content.
The page is
<?php header('Content-type: text/html; charset=utf-8'); ?>
The page page can be viewed here.
How can I get the output to be shown as formatted.
For regular fields, you'd want to show < and > as those characters, which is what htmlencode() does. It replaced < with the html entity < 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!