$re = substr($str,0,$i).$ends; % {7 Y9 h, w5 b$ B- A, {, h' F
if($more) $re.='...'; * g/ z: }" @' n" `! T- s
return $re; ( [* X9 t! \& A$ d) y
} % e* ?/ D+ Z0 E2 \7 o* J
9 e$ f- Y& Q6 f3 Q* g) b; t8 G" W
$str=<<<EOF * G% r1 Q! c& d# n) Y2 D" m4 x
<h3>What is the <acronym>GNU</acronym> pr<a><a><a>oject?</h3> * f1 @( X% I* {; ~/ h( @
<p>The <acronym>GNU</acronym> Project was launched in 1984 to develop a complete Unix-like operating system which is <a href="http://www.gnu.org/philosophy/free-sw.html">free software</a>: the <acronym>GNU</acronym> system. Variants of the <acronym>GNU</acronym> operating system, which use the kernel called Linux, are now widely used; though these systems are often referred to as “Linux”, they are more accurately called <a href="http://www.gnu.org/gnu/linux-and-gnu.html">GNU/Linux systems</a>. </p> 0 f2 p4 d# C2 {/ E+ ?
<p><acronym>GNU</acronym> is a recursive acronym for “GNU's Not Unix”; it is pronounced <em>guh-noo</em>, approximately like <em>canoe</em>.</p> 7 @9 z# G# B2 n
<h3>What is Free Software?</h3> " e8 U4 m' V! j6 T
<p>“<a href="http://www.gnu.org/philosophy/free-sw.html">Free software</a>” is a matter of liberty, not price. To understand the concept, you should think of “free” as in “free speech”, not as in “free beer”.</p> 6 y7 j3 N9 Y) c+ C7 L, W
<p>Free software is a matter of the users' freedom to run, copy, distribute, study, change and improve the software. More precisely, it refers to four kinds of freedom, for the users of the software:</p> 9 i C% Z' x; F' s9 s- D5 r0 o O p5 X
<ul> ! U$ a# y; o5 |7 a
<li>The freedom to run the program, for any purpose (freedom 0). </li> 5 R- U$ p! b9 x( o
<li>The freedom to study how the program works, and adapt it to your needs (freedom 1). Access to the source code is a precondition for this. </li> 7 F9 z" e. K( R# V: n2 \
<li>The freedom to redistribute copies so you can help your neighbor (freedom 2). </li> 7 m0 X' E* J! b) V8 c! s
<li>The freedom to improve the program, and release your improvements to the public, so that the whole community benefits (freedom 3). Access to the source code is a precondition for this. </li> ; n- N! e. E5 C" G3 X
</ul> : a0 T' M; R& I* D/ M! G- ^
<h3>What is the Free Software Foundation?</h3> 6 f! R8 F8 ~9 n3 e2 B( z% [- c8 w- B
<p>The <a href="http://www.fsf.org/">Free Software Foundation</a> (<abbr title="Free Software Foundation">) is the principal organizational sponsor of the Project. The receives very little funding from corporations or grant-making foundations, but relies on support from individuals like you. </abbr>) is the principal organizational sponsor of the Project. The receives very little funding from corporations or grant-making foundations, but relies on support from individuals like you. </p> 3 u4 x7 m1 ~6 h0 z- a
<p>Please consider helping the <abbr>by , or by . If you use Free Software in your business, you can also consider or as a way to support the . </abbr>by , or by . If you use Free Software in your business, you can also consider or as a way to support the . </p> - V, j. o; W6 {0 o4 y# l
<p>The <acronym>GNU</acronym> project supports the mission of the <abbr>to preserve, protect and promote the freedom to use, study, copy, modify, and redistribute computer software, and to defend the rights of Free Software users. We support the on the Internet, , and the unimpeded by private monopolies. You can also learn more about these issues in the book . </abbr>to preserve, protect and promote the freedom to use, study, copy, modify, and redistribute computer software, and to defend the rights of Free Software users. We support the on the Internet, , and the unimpeded by private monopolies. You can also learn more about these issues in the book . </p> / w0 A5 N( z; S6 I B* ^9 X6 w
<!-- ( p2 c; M0 ` D( {5 c1 [' R% X
Keep link lines at 72 characters or lynx will break them poorly ; P8 {9 \: B$ Z9 M4 I7 v
Obviously, we list ONLY the most useful/important URLs here + v+ S: P6 X" E/ U! q, y
Keep it short and sweet: 3 lines and 2 columns is already enough 6 h- o+ Y2 A/ O- @( i, k; O( X: k