escape_html.js 489 B

1234567891011121314151617
  1. 'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports.default =
  2. escapeHTML; /**
  3. * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
  4. *
  5. * This source code is licensed under the MIT license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. *
  8. *
  9. */function escapeHTML(str) {return str.replace(/</g, '&lt;').replace(/>/g, '&gt;');}