[CHANGED] "README.md". Added notice required about input escaping.

This commit is contained in:
Roman Syroeshko 2014-11-23 13:22:34 +04:00
parent 9a6c224e47
commit b8ee099d96
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ $phpWord->save('helloWorld.docx');
$phpWord->save('helloWorld.odt', 'ODText'); $phpWord->save('helloWorld.odt', 'ODText');
$phpWord->save('helloWorld.rtf', 'RTF'); $phpWord->save('helloWorld.rtf', 'RTF');
``` ```
:warning: Escape any string PHPWord API consumes by passing it through [Zend\Escaper](http://framework.zend.com/manual/2.3/en/index.html#zend-escaper) or [``htmlspecialchars``](https://php.net/manual/en/function.htmlspecialchars.php) at least. :warning: Escape any string you pass to your document with PHPWord API. Otherwise you may broke the document.
More examples are provided in the [samples folder](samples/). You can also read the [Developers' Documentation](http://phpword.readthedocs.org/) and the [API Documentation](http://phpoffice.github.io/PHPWord/docs/master/) for more detail. More examples are provided in the [samples folder](samples/). You can also read the [Developers' Documentation](http://phpword.readthedocs.org/) and the [API Documentation](http://phpoffice.github.io/PHPWord/docs/master/) for more detail.