Javascript Encoding
-
I'm writing a simple program in Javascript that dynamically processes Xpaths. So when I read a xml document, I want to display it in a Div with the innerHTML property. To take care the the > and <, I do a string replace. But I was wondering if there is a built in function for doing this type of encoding rather than a search/replace. Anyone know? *->>Always working on my game, teach me *->>something new. cout << "dav1d\n";
-
I'm writing a simple program in Javascript that dynamically processes Xpaths. So when I read a xml document, I want to display it in a Div with the innerHTML property. To take care the the > and <, I do a string replace. But I was wondering if there is a built in function for doing this type of encoding rather than a search/replace. Anyone know? *->>Always working on my game, teach me *->>something new. cout << "dav1d\n";
I'm not certain, but doesn't
escape
convert funny characters into the hex equivalent??? Typo...it's escape NOT encode!!! It's frustrating being a genius and living the life of a moron!!!