<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; PHP: Удаление переносов строк при загрузке страницы]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10633</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10633&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «PHP: Удаление переносов строк при загрузке страницы».]]></description>
		<lastBuildDate>Sun, 10 May 2015 11:57:18 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: PHP: Удаление переносов строк при загрузке страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=93884#p93884</link>
			<description><![CDATA[<p>Ваш код удаляет переносы строк из переменной, вопрос был еще как передать пользователю обработанную после обращения страницу в которой уже будут удалены переносы строк.</p><p>Вот что у меня получилось:<br /></p><div class="codebox"><pre><code>&lt;?php
ob_start();
?&gt;

&lt;?php
$str = &quot;
Код страницы 
с 
переносами 
строк&quot;;

echo $str;
?&gt;

&lt;?php
$buffer = ob_get_contents();
ob_end_clean(); 
$buffer=preg_replace(&#039;[\n|\r|\t]&#039;,&#039;&#039;,$buffer);
echo $buffer;
?&gt;</code></pre></div><p>Если еще какие варианты по проще или этот только возможный?</p>]]></description>
			<author><![CDATA[null@example.com (avens)]]></author>
			<pubDate>Sun, 10 May 2015 11:57:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=93884#p93884</guid>
		</item>
		<item>
			<title><![CDATA[Re: PHP: Удаление переносов строк при загрузке страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=93877#p93877</link>
			<description><![CDATA[<div class="codebox"><pre><code>&lt;?php
$comment = str_replace(array(&quot;\r\n&quot;, &quot;\r&quot;, &quot;\n&quot;), &#039;&#039;, strip_tags($_POST[&#039;comment&#039;]));
?&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (greg zakharov)]]></author>
			<pubDate>Sat, 09 May 2015 16:46:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=93877#p93877</guid>
		</item>
		<item>
			<title><![CDATA[PHP: Удаление переносов строк при загрузке страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=93876#p93876</link>
			<description><![CDATA[<p>Можно как то удалить переносы строк из загружаемой страницы к примеру:</p><p>http://site.ru/tech.php</p><p>В файле tech.php на сервере содержится код с переносами строк, необходимо что бы пользователю в браузер обработанная страница загружалась с вытянутым в одну строку кодом.</p>]]></description>
			<author><![CDATA[null@example.com (avens)]]></author>
			<pubDate>Sat, 09 May 2015 15:10:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=93876#p93876</guid>
		</item>
	</channel>
</rss>
