<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1042860" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1042860</link>
    <description></description>
    <language>en</language>
          <item>
    <title>To print 3 lines of content</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/can-you-help-me-strip-tags-and-strlen#comment-1237561</link>
    <description> &lt;p&gt;To print 3 lines of content with html tags included. If I cut too much sometimes are printed 2 lines, if I increase that value sometimes 4 lines are printed.&lt;/p&gt;
 </description>
     <pubDate>Tue, 27 Jan 2009 18:05:29 +0000</pubDate>
 <dc:creator>bloggero</dc:creator>
 <guid isPermaLink="false">comment 1237561 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>The only way I know to get</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/can-you-help-me-strip-tags-and-strlen#comment-1237473</link>
    <description> &lt;p&gt;The only way I know to get the size of text on the screen is by using JavaScript. The fonts in your font stack are of different sizes, affecting the number of characters in a line. In addition, there are many settings of both the browser and the computer that affect text size. I don&#039;t think there&#039;s a way of detecting such settings with PHP.&lt;/p&gt;
&lt;p&gt;Even with JavaScript it is tricky, as you need to put the text in a shrink-wrapped container to measure any particular piece of text. Then you have to monitor continuously for changes to browser text size settings.&lt;/p&gt;
&lt;p&gt;Can you describe what you hope to achieve, exactly?&lt;/p&gt;
 </description>
     <pubDate>Sun, 25 Jan 2009 23:08:20 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1237473 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Oh, ok.  So you are looking</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/can-you-help-me-strip-tags-and-strlen#comment-1237471</link>
    <description> &lt;p&gt;Oh, ok.  So you are looking to get a string width in pixels?  PHP does offer the ability to get the dimensions of a string in pixels, using the &lt;a href=&quot;http://us.php.net/manual/en/function.imagettfbbox.php&quot;&gt;imagettfbbox&lt;/a&gt;() function, but that is only for overlaying text on a graphic.&lt;/p&gt;
 </description>
     <pubDate>Sun, 25 Jan 2009 20:26:17 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1237471 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I strip tags before before</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/can-you-help-me-strip-tags-and-strlen#comment-1237470</link>
    <description> &lt;p&gt;I strip tags before before getting the string length, but the problem is in the character length in pixels, or so I think, and I don&#039;t know how to solve this.&lt;/p&gt;
 </description>
     <pubDate>Sun, 25 Jan 2009 20:05:44 +0000</pubDate>
 <dc:creator>bloggero</dc:creator>
 <guid isPermaLink="false">comment 1237470 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>As long as you strip the</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/can-you-help-me-strip-tags-and-strlen#comment-1237461</link>
    <description> &lt;p&gt;As long as you strip the tags before getting the string length, you should have no problem getting the proper length that matches all the others.&lt;/p&gt;
 </description>
     <pubDate>Sun, 25 Jan 2009 12:45:38 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1237461 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
