Skip to content

Commit

Permalink
fixed README.md [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Nobuo Kihara committed May 1, 2015
1 parent d81b7c9 commit f56f267
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ which should be `>>>`, for example:
>>>
```

Note that the output of the raw html blocks **SHOULD BE CLEANSED** with `$parser->outputFilter`.
Note that the output of the raw html blocks **SHOULD BE CLEANSED** with `$parser->rawHtmlFilter`.
A recommendation is to use HTML Purifier for the filter. For example:

```
Expand All @@ -103,9 +103,14 @@ $parser->rawHtmlFilter = function($input) {
};
// Or, if you are Yii 2 user
$parser->rawHtmlFilter = \yii\helpers\HtmlPurifier;
$parser->rawHtmlFilter = function($input) {
return \yii\helpers\HtmlPurifier::process($input);
};
```

As you see in the example, the `rawHtmlFilter` should be a callable that accepts the possibly unclean html
text string and output the sanitized version of it.

### The command line script

You can use it to convert a wiki text to a html file:
Expand Down

0 comments on commit f56f267

Please sign in to comment.