Text Helper
http://www.symfony-project.org/api/1_4/TextHelper
<?php echo use_helper('Text') echo auto_link_text() // Turns all urls and email addresses into clickable links. The +link+ parameter can limit what should be linked. echo excerpt_text() // Extracts an excerpt from the +text+ surrounding the +phrase+ with a number of characters on each side determined echo highlight_text($text, $phrase, $highlighter) // Highlights the +phrase+ where it is found in the +text+ by surrounding it like echo simple_format_text() // Returns +text+ transformed into html using very simple formatting rules echo strip_links_text() // Turns all links into words, like "<a href="something">else</a>" to "else". echo truncate_text() // Truncates +text+ to the length of +length+ and replaces the last three characters with the +truncate_string+ echo wrap_text() // Word wrap long lines to line_width. echo _auto_link_email_addresses() // Turns all email addresses into clickable links. echo _auto_link_urls() // Turns all urls into clickable links ?> |