diff options
author | Adam Chlipala <adamc@hcoop.net> | 2010-01-01 10:49:36 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2010-01-01 10:49:36 -0500 |
commit | ae8ae8a624237d0c9710919d993b5342ef44a36b (patch) | |
tree | a1c114af140aee012d6f75b186cb3c4fd4e9d9d4 /lib/js | |
parent | cc0f3b1b858aa0993d48f672fdbda04736afb635 (diff) |
Proper client-side attrifyString
Diffstat (limited to 'lib/js')
-rw-r--r-- | lib/js/urweb.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js index 3a0e7f9f..8d7f6e40 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -603,6 +603,10 @@ function uu(s) { return decodeURIComponent(s.replace(new RegExp ("\\+", "g"), " ")); } +function atr(s) { + return s.replace(new RegExp ("\"", "g"), """).replace(new RegExp ("&", "g"), "&") +} + function ub(b) { return b ? "1" : "0"; } |