Modify ↓
Ticket #756 (closed enhancement: fixed)
.text(val) should set escaped text
| Reported by: | john | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | core | Version: | |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Current it just sets the HTML, when it should set the actual text instead.
For example:
$("p").text("<b>foo</b>");
Would give this result:
<p><b>foo</b></p>
Change History
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.
