CakePHP: Strip HTML using Text helper?

edimbPeam

New Member
I'm using the truncate method of the text helper and in doing so means any html included in the text is being rendered. Is there anyway to set the text helper to strip out html tags?\[code\] echo $text->truncate( $project['Project']['description'], 250, array( 'ending' => '...', 'exact' => false ) );\[/code\]Is there a modification to this similar to the stripLinks method?thanks,Jonesy
 
Back
Top