Lines Matching defs:Parsedown
3 ## Parsedown
27 Include `Parsedown.php` or install [the composer package](https://packagist.org/packages/erusev/parsedown).
32 $Parsedown = new Parsedown();
34 echo $Parsedown->text('Hello _Parsedown_!'); # prints: <p>Hello <em>Parsedown</em>!</p>
41 Parsedown is capable of escaping user-input within the HTML that it generates. Additionally Parsedown will apply sanitisation to additional scripting vectors (such as scripting link destinations) that are introduced by the markdown syntax itself.
43 To tell Parsedown that it is processing untrusted user-input, use the following:
45 $parsedown = new Parsedown;
53 #### Security of Parsedown Extensions
55 Safe mode does not necessarily yield safe results when using extensions to Parsedown. Extensions should be evaluated on their own to determine their specific safety against XSS.
62 $parsedown = new Parsedown;
70 **How does Parsedown work?**
74 We call this approach "line based". We believe that Parsedown is the first Markdown parser to use it. Since the release of Parsedown, other developers have used the same approach to develop other Markdown parsers in PHP and in other languages.