Hi there,I have a web form with one element, xs:string, that can be populated with either text or HTML. My rendering template takes the info in this element and wraps it in an XML node for integration with a web app. I'm noticing that upon save, Alfresco surrounds the text with <p>…</p> AND that even with disable-output-escaping set to yes, if HTML is entered, the tags aren't escaped, they're rendered into < instead of <.Here's an example:Content entered into Web Form field:<p>Thank you for creating an account. Take a tour of the account features that may make your shopping experience more enjoyable.</p>
<dl>
<dt>Order History</dt>
<dd>
<p>Review previous orders, reorder items that you have purchased previously, and review the status of your orders.</p>
<p><a href="OrderHistoryView">Start Now</a></p>
</dd>
<dt>Wishlist</dt>
<dd>
<p>Create a wishlist of items that you wish to purchase.</p>
<p><a href="InterestItemDispay">Start Now</a></p>
</dd>
<dt>Address Book</dt>
<dd>
<p>Provide your address information now to speed up your checkout process.</p>
<p><a href="AddressBookView">Start Now</a></p>
</dd>
<dt>Billing Information</dt>
<dd>
<p>Store your credit card information in our secure system to make purchasing products a breeze.</p>
<p><a href="#">Start Now</a></p>
</dd>
<dt>Account Information</dt>
<dd>
<p>Update your email address and account password</p>
<p><a href="EditAccountInformationView">Start Now</a></p>
</dd>
</dl>
XSLT Snippet:<xsl:value-of disable-output-escaping="yes" select="." />
Output XML Doc Snippet:<body><p> <p>Thank you for creating an account. Take a tour of the account features that may make your shopping experience more enjoyable.</p><br /> <dl><br /> <dt>Order History</dt><br /> <dd><br /> <p>Review previous orders, reorder items that you have purchased previously, and review the status of your orders.</p><br /> <p><a href="OrderHistoryView">Start Now</a></p><br /> </dd><br /> <br /> <dt>Wishlist</dt><br /> <dd><br /> <p>Create a wishlist of items that you wish to purchase.</p><br /> <p><a href="InterestItemDispay">Start Now</a></p><br /> </dd></p> <p> <dt>Address Book</dt><br /> <dd><br /> <p>Provide your address information now to speed up your checkout process.</p><br /> <p><a href="AddressBookView">Start Now</a></p><br /> </dd></p> <p> <dt>Billing Information</dt><br /> <dd><br /> <p>Store your credit card information in our secure system to make purchasing products a breeze.</p><br /> <p><a href="#">Start Now</a></p><br /> </dd></p> <p> <dt>Account Information</dt><br /> <dd><br /> <p>Update your email address and account password</p><br /> <p><a href="EditAccountInformationView">Start Now</a></p><br /> </dd><br /> </dl></p></body>
Can someone help me get rid of the <p> and also figure out how to escape the HTML in the output?Thanks in advance.