Ticket #2900: raw_text.patch
| File raw_text.patch, 0.9 kB (added by Michael.Nolan, 1 year ago) |
|---|
-
plugins/sfPropelActAsCommentableBehaviorPlugin/lib/sfPropelActAsCommentableBehavior.class.php
old new 51 51 { 52 52 if (strlen($comment['text']) > 0) 53 53 { 54 $comment['text'] = strip_tags($comment['text']);55 54 $comment['created_at'] = time(); 56 55 57 56 if (!isset($comment['namespace'])) … … 143 142 foreach ($comment_objects as $comment_object) 144 143 { 145 144 $comment = $comment_object->toArray(); 145 $comment['RawText'] = $comment['Text']; 146 $comment['Text'] = strip_tags($comment['Text']); 146 147 $comments[] = $comment; 147 148 } 148 149