<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>how to prevent cross-site scripting in an InfoPath form</title><link>https://www.infopathdev.com:443/forums/thread/73134.aspx</link><pubDate>Wed, 21 Dec 2011 00:40:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73134</guid><dc:creator>easyeman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73134.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=73134</wfw:commentRss><description>&lt;p&gt;We have InfoPath forms implemented in several areas of the site to submit requests.&amp;nbsp; An example is a Request form to ask a question to a staff member who can reply to the message as well.&lt;br /&gt;&lt;br /&gt;There is the possibility that someone can enter in JavaScript, such as (&amp;lt;script&amp;gt; alert(“attack”) 
&amp;lt;/script&amp;gt;) in one of the editable controls (subject or message body) and submit data in InfoPath.&amp;nbsp; The JavaScript code then fires on the staff side with that page getting the alert Message.&amp;nbsp; I&amp;#39;ve researched a lot but haven&amp;#39;t found a definitive answer.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is there any direct way 
to restrict/prevent XSS for this type of validation?&amp;nbsp; Any suggestions would be helpful.&lt;br /&gt;&lt;br /&gt;Thanks in Advance!&lt;/p&gt;</description></item></channel></rss>