<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Filtering Out Unwanted XHTML/HTML Tags</title>
	<atom:link href="http://addictedtonew.com/archives/72/filtering-out-unwanted-xhtmlhtml-tags/feed/" rel="self" type="application/rss+xml" />
	<link>http://addictedtonew.com/archives/72/filtering-out-unwanted-xhtmlhtml-tags/</link>
	<description>John Nunemaker\'s thoughts and such</description>
	<lastBuildDate>Sun, 01 Nov 2009 17:19:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Santosh Patnaik</title>
		<link>http://addictedtonew.com/archives/72/filtering-out-unwanted-xhtmlhtml-tags/comment-page-1/#comment-125954</link>
		<dc:creator>Santosh Patnaik</dc:creator>
		<pubDate>Sat, 02 Feb 2008 21:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=72#comment-125954</guid>
		<description>Try &lt;a href=&quot;http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/index.php&quot; rel=&quot;nofollow&quot;&gt;htmLawed&lt;/a&gt;. Besides filtering admin-specified HTML tags, attributes, etc., it can also balance and properly nest HTML tags, transform deprecated tags and attributes, and so on.</description>
		<content:encoded><![CDATA[<p>Try <a href="http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/index.php" rel="nofollow">htmLawed</a>. Besides filtering admin-specified HTML tags, attributes, etc., it can also balance and properly nest HTML tags, transform deprecated tags and attributes, and so on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Nunemaker</title>
		<link>http://addictedtonew.com/archives/72/filtering-out-unwanted-xhtmlhtml-tags/comment-page-1/#comment-116974</link>
		<dc:creator>John Nunemaker</dc:creator>
		<pubDate>Mon, 24 Dec 2007 16:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=72#comment-116974</guid>
		<description>It&#039;s linked in the post.</description>
		<content:encoded><![CDATA[<p>It&#8217;s linked in the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rex</title>
		<link>http://addictedtonew.com/archives/72/filtering-out-unwanted-xhtmlhtml-tags/comment-page-1/#comment-116467</link>
		<dc:creator>Rex</dc:creator>
		<pubDate>Sat, 22 Dec 2007 04:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=72#comment-116467</guid>
		<description>Where is the InputFilter class????</description>
		<content:encoded><![CDATA[<p>Where is the InputFilter class????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arne Kuilman</title>
		<link>http://addictedtonew.com/archives/72/filtering-out-unwanted-xhtmlhtml-tags/comment-page-1/#comment-55849</link>
		<dc:creator>Arne Kuilman</dc:creator>
		<pubDate>Wed, 24 Jan 2007 23:46:44 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=72#comment-55849</guid>
		<description>I think I am just entering the XSS realm... but don&#039;t need and comprehend input filtering completely. I am just looking for a way to secure posted data in a URL after a form entry such as: index.php?name=user and hiding the variables in the URL.
It has something to do with SESSIONS or cookies, but I can&#039;t find some easy examples to start off with. As a PHP newbie these classes and input filters are very daunting.</description>
		<content:encoded><![CDATA[<p>I think I am just entering the XSS realm&#8230; but don&#8217;t need and comprehend input filtering completely. I am just looking for a way to secure posted data in a URL after a form entry such as: index.php?name=user and hiding the variables in the URL.<br />
It has something to do with SESSIONS or cookies, but I can&#8217;t find some easy examples to start off with. As a PHP newbie these classes and input filters are very daunting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Nunemaker</title>
		<link>http://addictedtonew.com/archives/72/filtering-out-unwanted-xhtmlhtml-tags/comment-page-1/#comment-3009</link>
		<dc:creator>John Nunemaker</dc:creator>
		<pubDate>Fri, 09 Jun 2006 17:36:33 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=72#comment-3009</guid>
		<description>@Teddy - Good find. I get nervous just looking at that list.</description>
		<content:encoded><![CDATA[<p>@Teddy &#8211; Good find. I get nervous just looking at that list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Teddy</title>
		<link>http://addictedtonew.com/archives/72/filtering-out-unwanted-xhtmlhtml-tags/comment-page-1/#comment-3008</link>
		<dc:creator>Teddy</dc:creator>
		<pubDate>Fri, 09 Jun 2006 17:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=72#comment-3008</guid>
		<description>You should check out http://ha.ckers.org/xss.html if you want the low down on XSS.  That guy put together the list of all the possible XSSs that are known.  I don&#039;t think your list solves the problem.  For instance you don&#039;t even mention the JavaScript directive but you allow A HREF, so you could have JavaScript in a link for instance.  Anyway, it&#039;s worth a read.</description>
		<content:encoded><![CDATA[<p>You should check out <a href="http://ha.ckers.org/xss.html" rel="nofollow">http://ha.ckers.org/xss.html</a> if you want the low down on XSS.  That guy put together the list of all the possible XSSs that are known.  I don&#8217;t think your list solves the problem.  For instance you don&#8217;t even mention the JavaScript directive but you allow A HREF, so you could have JavaScript in a link for instance.  Anyway, it&#8217;s worth a read.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Nunemaker</title>
		<link>http://addictedtonew.com/archives/72/filtering-out-unwanted-xhtmlhtml-tags/comment-page-1/#comment-1262</link>
		<dc:creator>John Nunemaker</dc:creator>
		<pubDate>Thu, 13 Apr 2006 00:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=72#comment-1262</guid>
		<description>I would search &#039;XSS&#039; at google. That should give you a wealth of articles. The main idea is that someone inserts &lt;script&gt; tags in a comment form or something which runs a script on another site when the page on your site is loaded. Most browsers now prevent XSS by default. Hope that helps.</description>
		<content:encoded><![CDATA[<p>I would search &#8216;XSS&#8217; at google. That should give you a wealth of articles. The main idea is that someone inserts &lt;script&gt; tags in a comment form or something which runs a script on another site when the page on your site is loaded. Most browsers now prevent XSS by default. Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shareen</title>
		<link>http://addictedtonew.com/archives/72/filtering-out-unwanted-xhtmlhtml-tags/comment-page-1/#comment-1261</link>
		<dc:creator>shareen</dc:creator>
		<pubDate>Wed, 12 Apr 2006 23:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=72#comment-1261</guid>
		<description>Hi,

I need to actually demonstrate and implement how XSS can be prevented for my dissertation. Can you help, ive read up on it abit and i know that you have to filter the information added to ur web page, but have not got a clue how to do that. Can you pleease help and point us in the right direction bearing in mind i am not very good at programming. Will be awaiting ur response.

thankyou</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I need to actually demonstrate and implement how XSS can be prevented for my dissertation. Can you help, ive read up on it abit and i know that you have to filter the information added to ur web page, but have not got a clue how to do that. Can you pleease help and point us in the right direction bearing in mind i am not very good at programming. Will be awaiting ur response.</p>
<p>thankyou</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Nunemaker</title>
		<link>http://addictedtonew.com/archives/72/filtering-out-unwanted-xhtmlhtml-tags/comment-page-1/#comment-260</link>
		<dc:creator>John Nunemaker</dc:creator>
		<pubDate>Tue, 13 Sep 2005 13:46:15 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=72#comment-260</guid>
		<description>@Mike - To remove all tags, I would use &lt;a href=&quot;http://us2.php.net/manual/en/function.strip-tags.php&quot; rel=&quot;nofollow&quot;&gt;strip_tags&lt;/a&gt; or &lt;a href=&quot;http://us2.php.net/manual/en/function.htmlspecialchars.php&quot; rel=&quot;nofollow&quot;&gt;htmlspecialchars&lt;/a&gt;.

Strip_tags strips all the tags from a string and htmlspecialchars encodes special characters such as &lt; and &gt;. This means that any html entered would show up as text rather than actual html.

As far as where to use them, I would use them before inserting into the database. Another option would be to use them when displaying the fields on the front side.</description>
		<content:encoded><![CDATA[<p>@Mike &#8211; To remove all tags, I would use <a href="http://us2.php.net/manual/en/function.strip-tags.php" rel="nofollow">strip_tags</a> or <a href="http://us2.php.net/manual/en/function.htmlspecialchars.php" rel="nofollow">htmlspecialchars</a>.</p>
<p>Strip_tags strips all the tags from a string and htmlspecialchars encodes special characters such as &lt; and &gt;. This means that any html entered would show up as text rather than actual html.</p>
<p>As far as where to use them, I would use them before inserting into the database. Another option would be to use them when displaying the fields on the front side.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://addictedtonew.com/archives/72/filtering-out-unwanted-xhtmlhtml-tags/comment-page-1/#comment-257</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Tue, 13 Sep 2005 12:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://addictedtonew.com/?p=72#comment-257</guid>
		<description>Not being a programmer, just a web designer who uses a lot of php complete scripts.
My sites are real estate agents so  I would like to prevent any tags.  
Could you show me how to do that and then ...
How and where would this code be used?

Mike</description>
		<content:encoded><![CDATA[<p>Not being a programmer, just a web designer who uses a lot of php complete scripts.<br />
My sites are real estate agents so  I would like to prevent any tags.<br />
Could you show me how to do that and then &#8230;<br />
How and where would this code be used?</p>
<p>Mike</p>
]]></content:encoded>
	</item>
</channel>
</rss>

