Modify ↓
Ticket #8929 (closed feature: wontfix)
Provide auto-trim option for .text()
| Reported by: | AlistairB | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | manipulation | Version: | 1.5.2 |
| Keywords: | needsreview | Cc: | |
| Blocking: | Blocked by: |
Description
I am constantly writing code like this:
var myId = $.trim($(".some-element").text());
It would be nice to have a leaner way to do this. eg.
var myId = $(".some-element").text(true);
var myId = $(".some-element").textTrim(); //there isprobably a better name for this
Change History
comment:1 Changed 2 years ago by timmywil
- Keywords needsreview added
- Priority changed from undecided to low
- Status changed from new to open
- Component changed from unfiled to manipulation
- Type changed from enhancement to feature
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
