Side navigation
#756 closed enhancement (fixed)
Opened January 05, 2007 09:01PM UTC
Closed January 07, 2007 11:59PM UTC
Last modified June 20, 2007 02:47AM UTC
.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>
Added to SVN, with an additional stripTags argument.