fixed view of details in admin table
only run truncate code if the html code is longer than max_length