fix README

This commit is contained in:
Zongmin Lei
2018-05-24 15:21:20 +08:00
parent 5647790cfb
commit 4f71124bde
2 changed files with 10 additions and 10 deletions

View File

@@ -67,19 +67,19 @@ For test code please refer to `benchmark` directory.
### NPM ### NPM
```bash ```bash
$ npm install xss npm install xss
``` ```
### Bower ### Bower
```bash ```bash
$ bower install xss bower install xss
``` ```
Or Or
```bash ```bash
$ bower install https://github.com/leizongmin/js-xss.git bower install https://github.com/leizongmin/js-xss.git
``` ```
## Usages ## Usages
@@ -140,7 +140,7 @@ xss -i <input_file> -o <output_file>
Example: Example:
```bash ```bash
$ xss -i origin.html -o target.html xss -i origin.html -o target.html
``` ```
### Active Test ### Active Test
@@ -149,7 +149,7 @@ Run the following command, them you can type HTML
code in the command-line, and check the filtered output: code in the command-line, and check the filtered output:
```bash ```bash
$ xss -t xss -t
``` ```
For more details, please run `$ xss -h` to see it. For more details, please run `$ xss -h` to see it.

View File

@@ -60,19 +60,19 @@
### NPM ### NPM
```bash ```bash
$ npm install xss npm install xss
``` ```
### Bower ### Bower
```bash ```bash
$ bower install xss bower install xss
``` ```
或者 或者
```bash ```bash
$ bower install https://github.com/leizongmin/js-xss.git bower install https://github.com/leizongmin/js-xss.git
``` ```
## 使用方法 ## 使用方法
@@ -133,7 +133,7 @@ xss -i <源文件> -o <目标文件>
例: 例:
```bash ```bash
$ xss -i origin.html -o target.html xss -i origin.html -o target.html
``` ```
### 在线测试 ### 在线测试
@@ -141,7 +141,7 @@ $ xss -i origin.html -o target.html
执行以下命令,可在命令行中输入 HTML 代码,并看到过滤后的代码: 执行以下命令,可在命令行中输入 HTML 代码,并看到过滤后的代码:
```bash ```bash
$ xss -t xss -t
``` ```
详细命令行参数说明,请输入 `$ xss -h` 来查看。 详细命令行参数说明,请输入 `$ xss -h` 来查看。