﻿<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Комментарии на запись: JavaScript - trim()</title>
	<link>http://tips.xet.ru/archives/javascript-trim</link>
	<description>Подсказки на все случаи жизни</description>
	<pubDate>Mon, 06 Feb 2012 12:33:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>От: bb</title>
		<link>http://tips.xet.ru/archives/javascript-trim#comment-138</link>
		<author>bb</author>
		<pubDate>Mon, 17 Dec 2007 14:36:11 +0000</pubDate>
		<guid>http://tips.xet.ru/archives/javascript-trim#comment-138</guid>
					<description>почти идиально, НО
не учитывается &#160;
Прошу по править!
Во моя функция:

function TrimString(sInString){
	sInString = sInString.replace(/&#160;/g,' ');
	return sInString.replace(/(^\s+)&#124;(\s+$)/g, "");
}</description>
		<content:encoded><![CDATA[<p>почти идиально, НО<br />
не учитывается &nbsp;<br />
Прошу по править!<br />
Во моя функция:</p>
<p>function TrimString(sInString){<br />
	sInString = sInString.replace(/&nbsp;/g,&#8217; &#8216;);<br />
	return sInString.replace(/(^\s+)|(\s+$)/g, &#8220;&#8221;);<br />
}</p>
]]></content:encoded>
				</item>
	<item>
		<title>От: bb</title>
		<link>http://tips.xet.ru/archives/javascript-trim#comment-139</link>
		<author>bb</author>
		<pubDate>Mon, 17 Dec 2007 14:37:19 +0000</pubDate>
		<guid>http://tips.xet.ru/archives/javascript-trim#comment-139</guid>
					<description>форматирование тоже нужно по править
речь шла об
&#38; n b s p ;</description>
		<content:encoded><![CDATA[<p>форматирование тоже нужно по править<br />
речь шла об<br />
&amp; n b s p ;</p>
]]></content:encoded>
				</item>
</channel>
</rss>

