Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
inikulin committed Dec 24, 2014
1 parent 39b8f07 commit efe9080
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ Provides tree-to-HTML serialization functionality.
####• Serializer.ctor([treeAdapter, options])
Creates new reusable instance of the `Serializer`. Optional `treeAdapter` argument specifies input tree format. If `treeAdapter` argument is not specified, `default` tree adapter will be used.

`options` object provides the serialization algorithm modifications (**Warning:** switching default options causes HTML5 specification violation. However, it may be useful in some cases, e.g. markup instrumentation. Use it on your own risk.)

* **options.encodeHtmlEntities** - HTML-encode characters like `<`, `>`, `&`, etc. Default: `true`.


*Example:*
```js
Expand Down

0 comments on commit efe9080

Please sign in to comment.