Karim shoair commited on
Commit ·
b97b5e3
1
Parent(s): 8be2f38
docs: Add the `remove_entities` argument
Browse files
docs/parsing/main_classes.md
CHANGED
|
@@ -500,6 +500,7 @@ First, we start with the `re` and `re_first` methods. These are the same methods
|
|
| 500 |
>>> TextHandler('\n wonderful idea, \reh?').clean()
|
| 501 |
'wonderful idea, eh?'
|
| 502 |
```
|
|
|
|
| 503 |
|
| 504 |
- Another method that might be helpful in some cases is the `.sort()` method to sort the string for you, as you do with lists
|
| 505 |
```python
|
|
|
|
| 500 |
>>> TextHandler('\n wonderful idea, \reh?').clean()
|
| 501 |
'wonderful idea, eh?'
|
| 502 |
```
|
| 503 |
+
Also, you can pass `remove_entities` argument to make `clean` replace HTML entities with their corresponding characters.
|
| 504 |
|
| 505 |
- Another method that might be helpful in some cases is the `.sort()` method to sort the string for you, as you do with lists
|
| 506 |
```python
|