InfoPath Q&A: How do I get HTML tags to appear as HTML and not as plain text in a Rich Text Box?

by S.Y.M. Wong-A-Ton | Filed under: InfoPath 2007

Kevin asks:

I am creating a task form for a workflow. The workflow will get kicked off when an HTML file is added to a document library. I would like to have the HTML file displayed on the left and the task itself displayed on the right of the form (so that the reviewer can make comments while looking at the file). I have added a rich text box and filled it upon task creation with the information from the HTML file, but it does not render the tags, just prints them as plain text. Is there a way to render the HTML?

Hi Kevin,

Please take a look at How to get HTML tags to appear as HTML and not as plain text in a Rich Text Box for the answer.

Also take a look at the following, where a line is added to a Rich Text Box by appending a child node to the node that represents the Rich Text Box.

Hope this helps.

Related Posts

Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent of S.Y.M. Wong-A-Ton. Usage of techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author, S.Y.M. Wong-A-Ton.

InfoPath 2010 Cookbook

InfoPath 2010 Cookbook 2: 101 Codeless Recipes for SharePoint 2010