You are here: Re: Counting Lines of Rendered HTML? « HTML « IT news, forums, messages
Re: Counting Lines of Rendered HTML?

Posted by Adrienne Boswell on 06/08/06 05:32

Gazing into my crystal ball I observed "travismcmahan" <tmcmahan@gmail.com>
writing in news:1149716520.639124.315900@c74g2000cwc.googlegroups.com:

> I appreciate your response, however block elements like <table>, <div>,
><p> cause problems with that sort of approach.
>

Then you make allowances for that in your script. If you get a tag, find
out which element it is, account for it, get the text, then look for the
ending tag.

If the element is a block level element, allow 1 line for it. Then you have
a count of the characters in the text between the element tags.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация