01.
<?php
$text
=
strip_tags
(html_entity_decode(
$product
[
'description'
], ENT_QUOTES,
'UTF-8'
));?>
02.
<?php
03.
$strleng
= (
strlen
(
$text
));
04.
if
(
$strleng
> 60) {
05.
06.
if
(
$languagesupport
== 2) {
07.
08.
09.
$text
= iconv(
"UTF-8"
,
"KOI8-R"
,
$text
);
10.
$text
= mb_substr (
$text
, 0 , 60).
"..."
;
11.
$text
= iconv(
"KOI8-R"
,
"UTF-8"
,
$text
);
12.
13.
14.
}
else
{
15.
16.
$text
=
substr
(
$text
, 0 , 60).
"..."
;
17.
18.
}
19.
20.
}
21.
22.
?>