Skip to content

Commit

Permalink
docs(readme): Add FAQ about strict decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 authored Aug 23, 2021
1 parent e239f54 commit c2e2c93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ you're dealing with an HTML or an XML document.
You can have a look at the options for the `encode` and `decode` methods to see
everything you can configure.

> When should I use strict decoding?
Strict decoding is for decoding entities in attributes, as well as in legacy
environments. When strict decoding, entities not terminated with a semicolon
will be ignored.

> Why should I use `entities` instead of alternative modules?
As of August 2021, `entities` is a bit faster than other modules. Still, this is
Expand Down

0 comments on commit c2e2c93

Please sign in to comment.