Hi,
I am saving data to text filed i want to display first 50 characters from that text field.
I tried it with left() function with my sql query and also tried it with substr() function in php code also.but i am getting a problem it shows first 50 characters but in the text field data comes from rich text editor.
just look at my text filed data..
<p style="text-align: left;"><strong>પે<span style="color: #3366ff;"><span style="background-color: #ffff99;">લિ લાઇન</span></span></strong></p>
<p style="text-align: left;"><span style="color: #ff0000;">બિજિ લાઇન</span>લાઇન</p>
<p style="text-align: left;"><img src="../upload/17a9440cb578f805e99974fd7e003653.jpg" alt="t" width="800" height="600" /></p>
<p style="text-align: left;"> </p>
<p style="text-align: left;"> </p>
<p style="text-align: left;"> </p>
<p style="text-align: left;"> </p>
<p style="text-align: left;"> </p>
<p style="text-align: left;">ચોથિ લાઇન</p>
<p style="text-align: left;">પાંચ્મિ લાઇન</p>
so if i use any of above function then i didn't got any formatting and also it breaks formatting.
when i called first 50 characters it only shows
પે
without formatting.
Dose any one know how to display only characters without counting the formatting coding and also with formatting.
thanks