Ticket #214 (new enhancement)

Opened 2 years ago

Last modified 1 year ago

Add unescapeHTML function

Reported by: carlos.perello@canonical.com Assigned to: somebody
Priority: normal Milestone: MochiKit 1.5
Component: component1 Version:
Severity: normal Keywords:
Cc:

Description

When using mochikit, we have an 'escapeHTML' function, but in some situations, you want to do the reverse action.

Right now, I'm using my own function based on prototype javascript library:

function unescapeHTML(unescaped_string) {

var div = document.createElement('div'); div.innerHTML = unescaped_string; return div.childNodes[0] ? div.childNodes[0].nodeValue : ;

}

Change History

01/12/07 12:23:16 changed by therve@gmail.com

  • summary changed from Please, add unescapeHTML function to Add unescapeHTML function.

05/14/07 17:48:22 changed by rsayre@mozilla.com

  • milestone set to MochiKit 1.5.

No tested patch, pushing to 1.5