JavaScript
Password Value as Text
I was working on a design the other day that only had text fields with no labels, the label was in the text field and would disappear when clicked on
Read Full Post | Make a Comment ( None so far )Convert HTML entities from XML in JavaScript
Sometimes you get passed a string from XML and it can contain HTML entities like the following
&
<
>
"
©
®
«
»
'
If you write the string with JavaScript then you get something like didn't instead of didn’t
I’ve searched around for a function that could handle this but could not find one, so I wrote my own. I thought I’d share [...]
Convert Microsoft Word Characters
I’ve written a JavaScript function a while ago that converts Microsoft Word Characters (crap) to valid HTML characters. Till today I didn’t realize how valuable the function is, it could probably do with some expansion on what it converts so any help to improve is much appreciated.
Read Full Post | Make a Comment ( 1 so far )