#756 closed enhancement (fixed)
.text(val) should set escaped text
Reported by: | john | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | core | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
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 (2)
comment:1 Changed 16 years ago by
Milestone: | 1.1 |
---|---|
Type: | bug → enhancement |
Version: | 1.1 |
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Added to SVN, with an additional stripTags argument.