The problem You need to enter rich text data in your form.The solutionUse the text/html mediaype on<xforms:textarea>:<xforms:textarea mediatype="text/html" ref="."/>Instead of a plain text area, this triggers the use of a rich text editor: When using the text/html mediaype, the resulting HTML is escaped in the XForms instance: <htmlarea><div style="text-align: left;"><b>Pyotr IlyichTchaikovsky</b><a shape="rect"...Commons Attribution-ShareAlike License</a>;additional terms may apply.<br clear="none"/></div></htmlarea>Also, Orbeon Forms performs clean-up of the resulting HTML for security reasons, to help prevent cross-site scripting (XSS) attacks. NOTE: Orbeon Forms uses the YUI Rich Text Editor to implement this feature. Run it and get the source |
