Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

febs-browser

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

febs-browser - npm Package Compare versions

Comparing version 0.7.20 to 0.7.21

5

dist/febs/README.md

@@ -249,2 +249,7 @@ febs 库是一些常用的工具的合集;

febs.string.replace(str, strSrc, strDest)
/**
* @desc: 对字符串中的 <> 标签进行转义为 &lt;, &gt;
* @return: string.
*/
febs.string.escapeHtml(str);
```

@@ -251,0 +256,0 @@

@@ -36,1 +36,14 @@ 'use strict';

exports.replace = string.replace;
/**
* @desc: 对字符串中的 <> 标签进行转义为 &lt;, &gt;
* @return: string.
*/
exports.escapeHtml = function(str) {
// 转义.
if (str) {
str = string.replace(str, '<', '&lt;');
str = string.replace(str, '>', '&gt;');
}
return str||'';
}

2

package.json

@@ -73,3 +73,3 @@ {

"name": "febs-browser",
"version": "0.7.20"
"version": "0.7.21"
}

@@ -249,2 +249,7 @@ febs 库是一些常用的工具的合集;

febs.string.replace(str, strSrc, strDest)
/**
* @desc: 对字符串中的 <> 标签进行转义为 &lt;, &gt;
* @return: string.
*/
febs.string.escapeHtml(str);
```

@@ -251,0 +256,0 @@

@@ -181,2 +181,7 @@ // Type definitions for febs

function replace(str: string, strSrc: string, strDest: string): string;
/**
* @desc: 对字符串中的 <> 标签进行转义为 &lt;, &gt;
* @return: string.
*/
function escapeHtml(str:string): string;
}

@@ -183,0 +188,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc