2 users online. Create an account or sign in to join them.Users
Question about html code in text areas
This is an open discussion with 6 replies, filed under General.
Search
How do you call entry/content? If you use <xsl:copy-of select="entry/content/*" /> you should get a full copy of your html.
Note: I’ve formatted the above XML for better readability
@driftwood: what does your XSLT look like? Are you using xsl:value-of or xsl:copy-of?
Nils, Allen,
I was using copy of and apply templates, but yeah the copy of works perfect! What does the star at the end do?
Thanks for the time guys, much appreciated.
Allen, sorry about the sloppy format!
Using the star will select all element nodes inside of content. Otherwise – without using the star – content itself would be returned.
If you’re using apply-templates, the XSLT processor will return the text value of your nodes until you add templates that match your html elements.
Thanks. I think I need to spend alot more time understanding XSLT.
Create an account or sign in to comment.
I have a text area that has a TinyMCE editor. In the text area I have a table with some data in it.
the output looks like so :
<?xml version="1.0" encoding="utf-8"?> <data> <events /> <recipes-and-menus> <section id="8" handle="recipes-and-menus">Recipes and Menus</section> <entry id="13"> <content mode="formatted"> <div class="module_container_title">all holidays & celebrations</div> <table id="all_holidays_tbl" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr><td> </td></tr><tr><td> </td></tr> </tbody> </table> </content> <page-title handle="holidays-and-amp-celebrations">Holidays & Celebrations</page-title> </entry> </recipes-and-menus> </data>When I call the
entry/contentall the html (added in text area) is stripped out. Any Ideas why?