(text)
| 14 | |
| 15 | |
| 16 | function escape(text) { |
| 17 | return text. |
| 18 | replace(/\&/g, '&'). |
| 19 | replace(/\</g, '<'). |
| 20 | replace(/\>/g, '>'). |
| 21 | replace(/"/g, '"'); |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * http://stackoverflow.com/questions/451486/pre-tag-loses-line-breaks-when-setting-innerhtml-in-ie |
no outgoing calls
no test coverage detected