<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: BBCode Format Function</title>
	<link>http://phpit.net/code/bbcode-format-function/</link>
	<description>PHPit has dozens of PHP articles, codesnippets and FAQ's.</description>
	<pubDate>Fri, 20 Jun 2008 02:16:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: Midnight</title>
		<link>http://phpit.net/code/bbcode-format-function/#comment-666</link>
		<pubDate>Sun, 05 Mar 2006 00:59:01 +0000</pubDate>
		<guid>http://phpit.net/code/bbcode-format-function/#comment-666</guid>
					<description>Hey I have a site and it posts info into the database but it can't post html so I want to add bb codes to it and on the page that it shows the data it doesn't replace [b]text[/b] into a bolded text. Can someone help me out.</description>
		<content:encoded><![CDATA[<p>Hey I have a site and it posts info into the database but it can&#8217;t post html so I want to add bb codes to it and on the page that it shows the data it doesn&#8217;t replace [b]text[/b] into a bolded text. Can someone help me out.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: KinG</title>
		<link>http://phpit.net/code/bbcode-format-function/#comment-553</link>
		<pubDate>Sun, 05 Feb 2006 13:09:24 +0000</pubDate>
		<guid>http://phpit.net/code/bbcode-format-function/#comment-553</guid>
					<description>hoho, looks like mine, doesn't it ;)

but the second part is pretty neat to me, the idea of checking unclosed tags can be extended easily to all tags i suppose :)</description>
		<content:encoded><![CDATA[<p>hoho, looks like mine, doesn&#8217;t it ;)</p>
<p>but the second part is pretty neat to me, the idea of checking unclosed tags can be extended easily to all tags i suppose :)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: PHPit - Totally PHP &#187; PHP Security: Basic PHP Security</title>
		<link>http://phpit.net/code/bbcode-format-function/#comment-418</link>
		<pubDate>Sun, 15 Jan 2006 21:54:54 +0000</pubDate>
		<guid>http://phpit.net/code/bbcode-format-function/#comment-418</guid>
					<description>[...] Codesnippets [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Codesnippets [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Dennis Pallett</title>
		<link>http://phpit.net/code/bbcode-format-function/#comment-60</link>
		<pubDate>Thu, 03 Nov 2005 19:42:35 +0000</pubDate>
		<guid>http://phpit.net/code/bbcode-format-function/#comment-60</guid>
					<description>You're right, and I've fixed the code above. Thanks for letting me know!</description>
		<content:encoded><![CDATA[<p>You&#8217;re right, and I&#8217;ve fixed the code above. Thanks for letting me know!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Peter Jay Salzman</title>
		<link>http://phpit.net/code/bbcode-format-function/#comment-44</link>
		<pubDate>Wed, 02 Nov 2005 21:51:54 +0000</pubDate>
		<guid>http://phpit.net/code/bbcode-format-function/#comment-44</guid>
					<description>Very nice article.  But shouldn't this:

[quote]
$str = str_replace ('&lt;blockquote&gt;', $open, $str);
$str = str_replace ('&lt;/blockquote&gt;', $close, $str);
[/quote]

be this:

[quote]
$str = str_replace ('[ quote]', $open, $str);
$str = str_replace ('[ /quote', $close, $str);
[/quote]

Note the superfluous space to prevent the bbcode from being interpreted as bbcode!</description>
		<content:encoded><![CDATA[<p>Very nice article.  But shouldn&#8217;t this:</p>
<p>[quote]<br />
$str = str_replace (&#8217;<br />
<blockquote>&#8216;, $open, $str);<br />
$str = str_replace (&#8217;</p></blockquote>
<p>&#8216;, $close, $str);<br />
[/quote]</p>
<p>be this:</p>
<p>[quote]<br />
$str = str_replace (&#8217;[ quote]&#8217;, $open, $str);<br />
$str = str_replace (&#8217;[ /quote&#8217;, $close, $str);<br />
[/quote]</p>
<p>Note the superfluous space to prevent the bbcode from being interpreted as bbcode!
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
