Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10173 (closed defect: fixed)

Opened 10 months ago

Last modified 6 months ago

[PATCH] [TEST] IE specific unescapeHTML should strip tags

Reported by: pdan_pdan Assigned to: sam
Priority: normal Milestone: 2.x
Component: Prototype Version: edge
Severity: normal Keywords:
Cc:

Description

In the Explorer specific implementation, it’s missing the stripTags:

unescapeHTML: function() {
+++ var str = this.stripTags();
--- return this.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');
+++ return str.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');
  }

Attachments

unescapeHTML.diff (1.0 kB) - added by kangax on 01/28/08 16:27:46.

Change History

01/28/08 16:27:46 changed by kangax

  • attachment unescapeHTML.diff added.

01/28/08 16:29:08 changed by kangax

  • summary changed from unescapeHTML - explorer version to [PATCH] [TEST] IE specific unescapeHTML should strip tags.

03/09/08 07:21:46 changed by tobie

  • status changed from new to closed.
  • resolution set to fixed.

(In [8999]) prototype: Make String#unescapeHTML strip tags in IE. Closes #10173.