<?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"
	>
<channel>
	<title>Comments on: Transforming text to paragraphs</title>
	<atom:link href="http://www.robertnyman.com/2005/07/21/transforming-text-to-paragraphs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.robertnyman.com/2005/07/21/transforming-text-to-paragraphs/</link>
	<description>Web development and Internet trends</description>
	<pubDate>Fri, 05 Dec 2008 09:36:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2005/07/21/transforming-text-to-paragraphs/#comment-716</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Thu, 21 Jul 2005 19:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/?p=127#comment-716</guid>
		<description>Devon,

First, sorry to hear about your job. I hope things work out.

Regarding chat logs: If you have Message History enabled in MSN Messenger, it writes an XML file per contact with your conversations.

When it comes to the e-mailing thing, I have no concrete suggestion.</description>
		<content:encoded><![CDATA[<p>Devon,</p>
<p>First, sorry to hear about your job. I hope things work out.</p>
<p>Regarding chat logs: If you have Message History enabled in <acronym title="Microsoft Network">MSN</acronym> Messenger, it writes an <acronym title="eXtensible Markup Language">XML</acronym> file per contact with your conversations.</p>
<p>When it comes to the e-mailing thing, I have no concrete suggestion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devon</title>
		<link>http://www.robertnyman.com/2005/07/21/transforming-text-to-paragraphs/#comment-715</link>
		<dc:creator>Devon</dc:creator>
		<pubDate>Thu, 21 Jul 2005 18:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/?p=127#comment-715</guid>
		<description>There's two things I would love to see done in XSLT -

1. chat log to XML.
2. e-mail (from say, my thunderbird client) to XML.

If I had the money I'd pay someone to do it. That's how much I want these. But, I just lost my job recently.</description>
		<content:encoded><![CDATA[<p>There&#8217;s two things I would love to see done in <acronym title="eXtensible Stylesheet Language Transformation">XSLT</acronym> -</p>
<p>1. chat log to <acronym title="eXtensible Markup Language">XML</acronym>.<br />
2. e-mail (from say, my thunderbird client) to <acronym title="eXtensible Markup Language">XML</acronym>.</p>
<p>If I had the money I&#8217;d pay someone to do it. That&#8217;s how much I want these. But, I just lost my job recently.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2005/07/21/transforming-text-to-paragraphs/#comment-712</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Thu, 21 Jul 2005 12:17:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/?p=127#comment-712</guid>
		<description>Tom,

Interesting that you bring that up!

In my case, the text contained &lt;acronym title="HyperText Markup Language"&gt;HTML&lt;/acronym&gt; as well, which they wanted removed.

So I ran a regular expression script to remove all tags first; basically, like this:
&lt;code&gt;strNodeText = strNodeText.replace(/&#60;\/?[^&#62;]+(&#62;&#124;$)/g, "");&lt;/code&gt;

However, if the text also contains tags that &lt;em&gt;should&lt;/em&gt; be left there, this solution isn't optimal. This script is only meant for plain text.</description>
		<content:encoded><![CDATA[<p>Tom,</p>
<p>Interesting that you bring that up!</p>
<p>In my case, the text contained <acronym title="HyperText Markup Language"></acronym><acronym title="HyperText Markup Language">HTML</acronym> as well, which they wanted removed.</p>
<p>So I ran a regular expression script to remove all tags first; basically, like this:<br />
<code>strNodeText = strNodeText.replace(/&lt;\/?[^&gt;]+(&gt;|$)/g, &#8220;&#8221;);</code></p>
<p>However, if the text also contains tags that <em>should</em> be left there, this solution isn&#8217;t optimal. This script is only meant for plain text.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Greuter</title>
		<link>http://www.robertnyman.com/2005/07/21/transforming-text-to-paragraphs/#comment-711</link>
		<dc:creator>Tom Greuter</dc:creator>
		<pubDate>Thu, 21 Jul 2005 11:07:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/?p=127#comment-711</guid>
		<description>If the text in the database is allowed to contain HTML you can possibly run into validation trouble when this script surrounds blockquotes or unnumbered lists with paragraph tags. In that case you probably want to apply more filters.</description>
		<content:encoded><![CDATA[<p>If the text in the database is allowed to contain <acronym title="HyperText Markup Language">HTML</acronym> you can possibly run into validation trouble when this script surrounds blockquotes or unnumbered lists with paragraph tags. In that case you probably want to apply more filters.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
