MCPcopy Create free account
hub / github.com/cure53/H5SC / sanitize

Function sanitize

html/scripts/import.js:7–11  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

5 window.onload = function() {
6 // sanitize
7 var sanitize = function(input){
8 output = input.replace(/&/gm, '&')
9 .replace(/</gm, '&lt;').replace(/>/gm, '&gt;');
10 return output;
11 };
12 // rudimentary off-line support
13 (function(){
14 var offline = function(){

Callers 1

import.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected