/ Published in: ActionScript 3
URL: http://www.stevensacks.net/?s=parsing+xhtml+with+e4x+in+as3
removeNamespace() doesn't always do the trick. Here's a bombizzle regexp.
Expand |
Embed | Plain Text
str = str.replace(/\s+xmlns(:[^=]+)?="[^"]*"/g, "");
You need to login to post a comment.
