Friday 16 January 2004 8:19:15 pm
Hi, I am using the shorten function to truncate the number of characters in article description to 100 characters. I am using the following code. {$:item.data_map.resource_introduction.content.output.output_text|shorten(100)} The output is enclosed with a <p> and </p> tag. But, when the description size is greater than 100, the text is shortened, but the </p> does not come along. If the size of description is less than 100 characters then the output is perfect, it has both <p> and </p> tag. The real problem comes when there is a situation where I get something like this. <p> Text desciption ... </p The [More] link which comes next then does not have the hyperlink working in it. The text is truncated like this. The shorten function should only truncate the description and not the paragraph tags. Is this a bug in Ez ? Does anyone has any idea why this is happening? But when we use the code {$:item.data_map.resource_introduction.data_text|shorten(100)} the shorten function does not work. Is there any way to avoid the <p> and </p> tags being generated by the Ez system. Thanks. Mahesh
Thanks & Regards
Mahesh
|