bharanikumarphp
07-07-2008, 12:17 PM
Hi dear
How to insert the special character <--break--> after some character count is reach,
when we add the content,
there some restriction,
the content may contain the html tags,and also self closed tags,
one more thing the <--insert --> tag must insert after the close tag only when the count is comeding between the open and close tag,
this is the sample content, what am going to insert
example
<p>Lorem Ipsum is <b>simply dummy text of the printing</b> and typesetting industry.</p><--break--> <p>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</p><-=break--> <p> when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p><--break--><table><tr><td> It has survived not only five centuries,</td></tr></table><--break--> but also the leap into electronic typesetting, <p>remaining essentially unchanged. </p><b>It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,</b><p> and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
Why do we use it?<--break-->
<p>
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p> <--break-->The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here',<b> making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years,</b><--break--> sometimes by accident, sometimes on purpose (injected humour and the like)<--break-->.
somethings need to follow in that:
1. assume if the cursor reached the 125 character then put the <--break-->
2. assume if cursor travel in the 100 character on that time between the <p> and </p> 50 character then , put the <--break--> after </p> ...
3.also check the sentense complete with comma or semicolon,or colon or full stop,then only put the <--break-->,
Thanks in advance :eek:
How to insert the special character <--break--> after some character count is reach,
when we add the content,
there some restriction,
the content may contain the html tags,and also self closed tags,
one more thing the <--insert --> tag must insert after the close tag only when the count is comeding between the open and close tag,
this is the sample content, what am going to insert
example
<p>Lorem Ipsum is <b>simply dummy text of the printing</b> and typesetting industry.</p><--break--> <p>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</p><-=break--> <p> when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p><--break--><table><tr><td> It has survived not only five centuries,</td></tr></table><--break--> but also the leap into electronic typesetting, <p>remaining essentially unchanged. </p><b>It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,</b><p> and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
Why do we use it?<--break-->
<p>
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p> <--break-->The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here',<b> making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years,</b><--break--> sometimes by accident, sometimes on purpose (injected humour and the like)<--break-->.
somethings need to follow in that:
1. assume if the cursor reached the 125 character then put the <--break-->
2. assume if cursor travel in the 100 character on that time between the <p> and </p> 50 character then , put the <--break--> after </p> ...
3.also check the sentense complete with comma or semicolon,or colon or full stop,then only put the <--break-->,
Thanks in advance :eek: