WYSIWYG shows <p> code

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

By wendy@dfj.com - September 4, 2014

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 wendy@dfj.com - September 4, 2014

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

By wendy@dfj.com - September 4, 2014

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/

By wendy@dfj.com - September 4, 2014

Thanks - as always, the support at Interactive Tools is amazing!