diff options
Diffstat (limited to 'creole/html_tools')
-rw-r--r-- | creole/html_tools/deentity.py | 1 | ||||
-rw-r--r-- | creole/html_tools/strip_html.py | 1 | ||||
-rw-r--r-- | creole/html_tools/text_tools.py | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/creole/html_tools/deentity.py b/creole/html_tools/deentity.py index 23a6190..165a7af 100644 --- a/creole/html_tools/deentity.py +++ b/creole/html_tools/deentity.py @@ -12,6 +12,7 @@ import re from html import entities + entities_rules = '|'.join([ r"(&\#(?P<number>\d+);)", r"(&\#x(?P<hex>[a-fA-F0-9]+);)", diff --git a/creole/html_tools/strip_html.py b/creole/html_tools/strip_html.py index 11a2f91..c265099 100644 --- a/creole/html_tools/strip_html.py +++ b/creole/html_tools/strip_html.py @@ -16,6 +16,7 @@ import re from creole.parser.html_parser_config import BLOCK_TAGS + strip_html_regex = re.compile( r""" \s* diff --git a/creole/html_tools/text_tools.py b/creole/html_tools/text_tools.py index 16487a5..5b52719 100644 --- a/creole/html_tools/text_tools.py +++ b/creole/html_tools/text_tools.py @@ -14,6 +14,7 @@ import re + space_re = re.compile(r"^(\s*)(.*?)(\s*)$", re.DOTALL) |