(str)
| 7633 | |
| 7634 | (function() { |
| 7635 | var xmlEscape = function(str) { |
| 7636 | if (!str || str.constructor !== String) { |
| 7637 | return ""; |
| 7638 | } |
| 7639 | |
| 7640 | return str.replace(/[\"&><]/g, function(match) { |
| 7641 | switch (match) { |
| 7642 | case "\"": |
| 7643 | return """; |
| 7644 | case "&": |
| 7645 | return "&"; |
| 7646 | case "<": |
| 7647 | return "<"; |
| 7648 | case ">": |
| 7649 | return ">"; |
| 7650 | } |
| 7651 | }); |
| 7652 | }; |
| 7653 | |
| 7654 | CSSLint.addFormatter({ |
| 7655 | id: "checkstyle-xml", |