WYSIWYG shows <p> code

6 posts by 2 authors in: Forums > CMS Builder
Last Post: September 4, 2014   (RSS)

Hi - Using 2.62 build and the WYSIWYG displays the code when rendered on the site. For example: wysiwyg html code shows <p>sentence of text here</p><p>sentence of text here</p><p>sentence of text here. When the php page is rendered, the WYSIWYG area shows the <p> tags instead of rendering paragraphs.

Thank you.

Wendy

By claire - September 4, 2014

Hey Wendy

Can you copy and paste the exact code being used to show the WYSIWYG field in your viewer file?

Thanks

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

<?php echo htmlencode($highlight_articlesRecord['content']) ?>

Hi Claire - Thanks. Your question made me realized that the code was probably wrong so I checked it and, sure enough, it was. I should have used: <?php echo $highlight_articlesRecord['content']; ?> and that works. Thanks so much.

By claire - September 4, 2014

Thought so - htmlencode prevents the tags from being read by the browser.

Let us know if you have any more issues with it. :)

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/