search for: trunicate

Displaying 2 results from an estimated 2 matches for "trunicate".

Did you mean: truncate
2009 Apr 30
0
Trunicating Names in options_from_collection_for_select
Anyone know how I could trunicate the names of a passed in array in options_from_collection_for_select? I tried a few things but nothing worked. Any ideas would be appreciated! <%= options_from_collection_for_select available_projects, :id, :name, @selected_project_id %> -- Posted via http://www.ruby-forum.com/.
2008 Mar 15
1
Javascript in URLs (was: Markdown doesn't always generate XHTML)
...uld *not* allow that regardless of any safe/no-markup/whatever-you-call-it mode. If someone legitimately wants javascript in their links/images/etc then they should be writing raw html. What do you think? Of course, then how do we do that? Some possabilites I came up with without much thought: 1. Trunicate a url at "javascript:" 2. Completely remove the entire url (perhaps replace with blank string or "#") 3. Leave the markup for the entire link as plan text (in other words - its not considered a match) 4. Do some kind of escaping (not sure what at this point) and leave it in the...