aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/text_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make auto_link handle nil by returning quickly if blank?Scott Barron2005-12-301-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3359 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make auto_link match urls with a port number specified.Marcel Molina2005-12-261-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct length for the truncate text helper. Closes #2913.Jeremy Kemper2005-11-181-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3080 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The auto_link text helper accepts an optional block to format the link text ↵Jeremy Kemper2005-11-101-9/+30
| | | | | | for each url and email address. References #2628. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2963 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TextHelper#strip_tags for removing HTML tags from a string (using ↵David Heinemeier Hansson2005-10-261-0/+22
| | | | | | HTMLTokenizer) (closes #2229) [marcin@junkheap.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2750 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update/clean up AP documentation (rdoc)Jamis Buck2005-10-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Misc doc fixes (typos/grammar/etc). Closes #2445.Marcel Molina2005-10-121-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2537 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Forced newer versions of RedCloth to use hard breaks [DHH]David Heinemeier Hansson2005-10-021-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2437 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Forced newer versions of RedCloth to use hard breaks [DHH]David Heinemeier Hansson2005-10-021-1/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2436 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Not the avenue we want to go downDavid Heinemeier Hansson2005-09-301-4/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2424 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Testing should also use a default REQUEST_METHODDavid Heinemeier Hansson2005-09-291-1/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Have text helpers use built in Regexp.escape rather than home grown alternativeMarcel Molina2005-09-261-7/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3573@asus: jeremy | 2005-09-26 11:38:44 -0700Jeremy Kemper2005-09-261-1/+1
| | | | | | | | | | | | | | | Ticket 1507 - IE file uploads give the filename as a full Windows path, but Ruby on UNIX doesn't know how to File.basename('C:\\blah\blah.foo'). r3574@asus: jeremy | 2005-09-26 14:32:11 -0700 Get rid of constant redefine warning. r3575@asus: jeremy | 2005-09-26 14:33:07 -0700 Override the file upload's original_filename singleton method in CGIMethods.get_typed_value. r3576@asus: jeremy | 2005-09-26 14:33:49 -0700 Unit test overridden original_filename against normal filenames and full Windows paths. r3577@asus: jeremy | 2005-09-26 14:33:57 -0700 Update change log. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2345 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make the truncate() helper multi-byte safe (assuming $KCODE has been set to ↵Jamis Buck2005-09-191-1/+7
| | | | | | something other than "NONE") #2103 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2265 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More auto-link fixes (to include query strings in autolinked text)Jamis Buck2005-09-141-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2241 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix autolinking to not include trailing tags as part of the URLJamis Buck2005-09-131-1/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TextHelper#cycle to cycle over an array of values on each hit (useful ↵David Heinemeier Hansson2005-09-121-0/+82
| | | | | | for alternating row colors etc) #2154 [dave-ml@dribin.org] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that TextHelper#auto_link_urls would include punctuation in the links ↵David Heinemeier Hansson2005-09-111-2/+2
| | | | | | #2166, #1671 [eigentone] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed SQL Server test #1678 [Tom Ward]David Heinemeier Hansson2005-07-091-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TextHelper#word_wrap(text, line_length = 80) #1449 [tuxie@dekadance.se]David Heinemeier Hansson2005-06-211-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1465 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a third parameter to TextHelper#auto_link called href_options for ↵David Heinemeier Hansson2005-06-161-5/+8
| | | | | | specifying additional tag options on the links generated #1401 [tyler.kovacs@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed TextHelper#highlight to return the text, not nil, if the phrase is ↵David Heinemeier Hansson2005-06-161-1/+1
| | | | | | blank #1409 [patrick@lenz.sh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TextHelper#sanitize that can will remove any Javascript handlers, ↵David Heinemeier Hansson2005-05-091-0/+55
| | | | | | blocks, and forms from an input of HTML. This allows for use of HTML on public sites, but still be free of XSS issues. #1277 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1298 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved TextHelper#human_size to NumberHelper#number_to_human_size, but kept ↵David Heinemeier Hansson2005-04-121-20/+0
| | | | | | an deprecated alias to the old method name git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed autolinking to work better in more cases #1013 [Jamis Buck]David Heinemeier Hansson2005-04-061-1/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1099 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TextHelper#human_size for formatting file sizes, like ↵David Heinemeier Hansson2005-03-261-0/+20
| | | | | | human_size(1234567) => 1.2 MB #943 [thomas@fesch.at] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@995 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TextHelper#simple_format as a non-dependency text presentation ↵David Heinemeier Hansson2005-03-201-1/+14
| | | | | | helper.Fixed TextHelper#markdown to use blank? instead of empty? so it can deal with nil strings passed #814 [Johan Sorensen] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@933 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed textilize to be resilient to getting nil parsed (by using ↵David Heinemeier Hansson2005-03-091-1/+1
| | | | | | Object#blank? instead of String#empty?) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@878 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that form helpers would treat string and symbol keys differently in ↵David Heinemeier Hansson2005-03-061-11/+11
| | | | | | html_options (and possibly create duplicate entries) #112 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@833 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made auto_link the only public method of its clan and added an option to ↵David Heinemeier Hansson2005-02-191-16/+23
| | | | | | control what to be linked instead git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@684 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use per-document setting for hardbreaks on textileDavid Heinemeier Hansson2005-02-191-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@678 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed textilize for RedCloth3 to keep doing hardbreaksDavid Heinemeier Hansson2005-02-191-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@673 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TextHelper#auto_link, TextHelper#auto_link_urls, and ↵David Heinemeier Hansson2005-02-181-0/+18
| | | | | | TextHelper#auto_link_email_addresses to turn those elements into ahrefs git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@661 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that textilize and markdown would instantiate their engines even on ↵David Heinemeier Hansson2004-12-191-2/+2
| | | | | | empty strings. This also fixes #333 [Ulysses] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* InitialDavid Heinemeier Hansson2004-11-241-0/+111
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de