Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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>&lt;b&gt;foo&lt;/b&gt;</p>

Change History (2)

comment:1 Changed 13 years ago by john

Milestone: 1.1
Type: bugenhancement
Version: 1.1

comment:2 Changed 13 years ago by joern

Resolution: fixed
Status: newclosed

Added to SVN, with an additional stripTags argument.

Note: See TracTickets for help on using tickets.