Revision 34975
Added by Argiro Kokogiannaki over 9 years ago
datasethelper.php | ||
---|---|---|
99 | 99 |
return ($embargoEndDate == NULL) ? '' : (JText :: _('EMBARGO_END_DATE_') . ' <span class="embargoDate">' . date(JText :: _('DATE_FORMAT'), $embargoEndDate) . '</span>'); |
100 | 100 |
} |
101 | 101 |
|
102 |
public static function _formatDescription($description) { |
|
102 |
public static function _formatDescription($description) { |
|
103 |
$description= ($description == NULL) ? '' : strip_tags($description); |
|
103 | 104 |
return ($description == NULL) ? '' : ('<div class="description">' . ((strlen($description) > DatasetHelper :: MAX_DESCRIPTION) ? (substr($description, 0, DatasetHelper :: MAX_DESCRIPTION - strlen(DatasetHelper :: SUFFIX)) . DatasetHelper :: SUFFIX) : $description) . '</div>'); |
104 | 105 |
} |
105 | 106 |
} |
Also available in: Unified diff
strip html tags from description