aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/text_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge docrailsPratik Naik2009-07-251-2/+2
|
* Truncate helper accepts a :separator for a more legible result [#1807 ↵Andy Stewart2009-05-181-1/+6
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure auto_link does not ignore multiple trailing punctuations [#2504 ↵Lance Ivy2009-05-171-6/+7
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge docrailsPratik Naik2009-03-241-3/+3
|
* Ensure auto_link doesnt linkify URLs in the middle of a tag [#1523 ↵Eugene Pimenov2009-03-101-2/+3
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ruby 1.9 compat: removed redundant nested repeat operatorJoshua Peek2009-02-071-1/+1
|
* Using the highlight helper on text with html shouldn't highlight text inside ↵Dan Weinand2009-01-281-1/+1
| | | | | | html attributes. [#1302 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* allow options to be passed to email address auto generationAndrew Kaspick2008-12-011-4/+4
| | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1418 state:committed]
* Autoload HTML::Document and sanitizersJeremy Kemper2008-11-231-10/+0
|
* Fixed RedCloth and BlueCloth shouldn't preload. Instead just assume that ↵David Heinemeier Hansson2008-11-171-81/+69
| | | | they're available if you want to use textilize and markdown and let autoload require them [DHH]
* auto_link helper: add intelligent ending closing bracket handling. add new ↵Mislav Marohnić2008-11-151-9/+13
| | | | | | | tests and reorder new ones for readability Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1353 state:committed]
* refactor autolink helper. change tests to expect HTML-escaped URLsMislav Marohnić2008-11-151-26/+20
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* auto_link view helper was failing on URLs with colons after a query paramRich Manalang2008-11-071-2/+2
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1341 state:committed]
* Merge with docrailsPratik Naik2008-11-021-5/+5
|
* Remove special 1.9 version of excerpt helper.Manfred Stienstra2008-09-211-45/+45
|
* Change all calls to String#chars to String#mb_chars. Remove a exception for ↵Manfred Stienstra2008-09-211-87/+41
| | | | Ruby <= 1.9.
* Merge docrailsPratik Naik2008-09-031-1/+1
|
* More symbols for send and respond_to?.Clemens Kofler2008-09-031-1/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Added TextHelper#current_cycle to return the current cycle for better design ↵Ken Collins2008-08-271-3/+40
| | | | | | | | options. [#417 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Require missing libraries and check for defined ActionController constant so ↵Joshua Peek2008-08-261-1/+10
| | | | ActionView can be used standalone
* Fixed autolink regexp compatibility for ruby 1.9 [#783 state:resolved]Stefan Kaes2008-08-091-1/+1
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Reapply 'cab168ac' because it was accidentally patched over in '10d9fe4b'Joshua Peek2008-07-291-1/+1
|
* Refactored TextHelper#truncate, highlight, excerpt, word_wrap and auto_link ↵Clemens Kofler2008-07-271-58/+148
| | | | | | to accept options hash [#705 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Ruby 1.9: Fixed regexp warning by replacing nested repeat operator + and ? ↵Joshua Peek2008-07-191-1/+1
| | | | with '*'
* Pass caller to concat deprecation warningJeremy Kemper2008-07-091-1/+1
|
* Allow single quote (the ' character) in the middle of URL when ↵Cheah Chu Yeow2008-06-271-1/+1
| | | | | | auto_link-ing. [#471 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Check whether blocks are called from erb using a special __in_erb_template ↵Jeremy Kemper2008-06-191-5/+1
| | | | variable visible in block binding.
* add deprecation for the #concat helper's 2nd argument, which is no longer neededrick2008-06-091-1/+5
|
* Use output_buffer reader and writer methods exclusively instead of hitting ↵Jeremy Kemper2008-06-081-2/+2
| | | | the instance variable so others can override the methods.
* concat should ignore nilJeremy Kemper2008-06-061-1/+1
|
* Don't pass block binding to concatJeremy Kemper2008-06-021-4/+4
|
* Try replacing _erbout with @output_bufferJeremy Kemper2008-06-021-2/+6
|
* Fix auto_link helper for already linked urls. [#72 state:resolved]Kevin Glowacz2008-05-221-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Parentheses should be acceptable characters for auto_link_urls. [#234 ↵Adam2008-05-221-1/+1
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* auto_link helper fails to recognize links separated by space. [#72 ↵Eugene Pimenov2008-05-161-1/+1
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Don't fallback to just adding "'s" in TextHelper#pluralize, because the ↵Joshua Peek2008-05-141-68/+59
| | | | Inflector is always loaded.
* Allow the #simple_format text_helper to take an html_options hash for each ↵Rick Olson2008-03-241-5/+13
| | | | | | paragraph. Closes #2448 [Francois Beausoleil, thechrisoshow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9083 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Docfix (closes #11230) [Henrik N]David Heinemeier Hansson2008-03-151-7/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9035 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that TextHelper#excerpt would include one character too many (closes ↵David Heinemeier Hansson2008-03-151-9/+9
| | | | | | #11268) [Irfy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9030 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: truncate and excerpt helpersJeremy Kemper2008-01-071-52/+84
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix that auto_link looks for ='s in url paths (Amazon urls have them). ↵Rick Olson2007-12-281-1/+1
| | | | | | Closes #10640 [bgreenlee] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Docfix (closes #10493)David Heinemeier Hansson2007-12-161-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8424 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix syntax error in documentation example for cycle method. Closes #8735 [foca]Marcel Molina2007-11-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8104 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Extracted sanitization methods from TextHelper to SanitizeHelper [DHH] ↵David Heinemeier Hansson2007-10-101-308/+1
| | | | | | Changed SanitizeHelper#sanitize to only allow the custom attributes and tags when specified in the call [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7825 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat, consistent load pathsJeremy Kemper2007-10-021-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that strip_tags blows up with invalid html (closes #9730) [lifo]David Heinemeier Hansson2007-09-291-4/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7677 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed spelling errors (closes #9706) [tarmo/rmm5t]David Heinemeier Hansson2007-09-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* move TextHelper#sanitize config options to the TextHelper module so it can ↵Rick Olson2007-09-231-1/+146
| | | | | | be included and used with any class, not just ActionView::Base git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7595 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Merge csrf_killer plugin into rails. Adds RequestForgeryProtection model ↵Rick Olson2007-09-231-19/+19
| | | | | | that verifies session-specific _tokens for non-GET requests. [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7592 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Secure #sanitize, #strip_tags, and #strip_links helpers against xss attacks. ↵Rick Olson2007-09-231-38/+98
| | | | | | Closes #8877. [Rick, lifofifo, Jacques Distler] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7589 5ecf4fe2-1ee6-0310-87b1-e25e094e27de