1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

improve readme

This commit is contained in:
Emanuil Rusev 2017-10-22 16:00:43 +03:00 committed by GitHub
parent 07c937583d
commit 16aadff2ed

View File

@ -21,8 +21,6 @@ Better Markdown Parser in PHP
* Tested in 5.3 to 7.1 and in HHVM * Tested in 5.3 to 7.1 and in HHVM
* [Markdown Extra extension](https://github.com/erusev/parsedown-extra) * [Markdown Extra extension](https://github.com/erusev/parsedown-extra)
Note that when you deal with untrusted content (ex: user commnets) you should also use a HTML sanitizer like [HTML Purifier](http://htmlpurifier.org/).
### Installation ### Installation
Include `Parsedown.php` or install [the composer package](https://packagist.org/packages/erusev/parsedown). Include `Parsedown.php` or install [the composer package](https://packagist.org/packages/erusev/parsedown).
@ -37,6 +35,10 @@ echo $Parsedown->text('Hello _Parsedown_!'); # prints: <p>Hello <em>Parsedown</e
More examples in [the wiki](https://github.com/erusev/parsedown/wiki/) and in [this video tutorial](http://youtu.be/wYZBY8DEikI). More examples in [the wiki](https://github.com/erusev/parsedown/wiki/) and in [this video tutorial](http://youtu.be/wYZBY8DEikI).
### Security
Parsedownw does not sanitize the outut HTML. When you deal with untrusted content (ex: user commnets) you should also use a HTML sanitizer like [HTML Purifier](http://htmlpurifier.org/).
### Questions ### Questions
**How does Parsedown work?** **How does Parsedown work?**