Adding keep_cdata argument for Adaptor and Response classes

This will force lxml to keep cdata while parsing html if you want
This commit is contained in:
Karim shoair
2024-12-10 22:06:08 +02:00
parent 5f9c3980dc
commit b4f90615c3
3 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ You might be slightly confused by now so let me clear things up. All fetcher-typ
```python
from scrapling import Fetcher, StealthyFetcher, PlayWrightFetcher
```
All of them can take these initialization arguments: `auto_match`, `huge_tree`, `keep_comments`, `storage`, `storage_args`, and `debug`, which are the same ones you give to the `Adaptor` class.
All of them can take these initialization arguments: `auto_match`, `huge_tree`, `keep_comments`, `keep_cdata`, `storage`, `storage_args`, and `debug`, which are the same ones you give to the `Adaptor` class.
If you don't want to pass arguments to the generated `Adaptor` object and want to use the default values, you can use this import instead for cleaner code:
```python