From 576f7e15c68c9ab1ad5438cdf906f6fb10e6ddde Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 16 Dec 2008 09:52:52 +0000 Subject: [PATCH] MINOR Updated phpDoc cautionary message on Text->LimitCharacters() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@69219 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/fieldtypes/Text.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/model/fieldtypes/Text.php b/core/model/fieldtypes/Text.php index d4f8d58b4..f2db5f8b7 100644 --- a/core/model/fieldtypes/Text.php +++ b/core/model/fieldtypes/Text.php @@ -52,8 +52,8 @@ class Text extends DBField { /** * Limit this field's content by a number of characters. - * Caution: This can be harmful on HTML, it can potentially - * malform your HTML if it limits halfway through a tag. + * CAUTION: Does not take into account HTML tags, so it + * has the potential to return malformed HTML. * * @param int $limit Number of characters to limit by * @param string $add Ellipsis to add to the end of limited string