This is an automated email from the ASF dual-hosted git repository.

gcruz pushed a commit to branch gc/8557
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/gc/8557 by this push:
     new 21b6e82ee [#8557] updated _strip_tags_re with regexp since it was 
removed from markupsafe package
21b6e82ee is described below

commit 21b6e82eedef311c09bf7be9f7b2d00eef0160ed
Author: Guillermo Cruz <[email protected]>
AuthorDate: Thu Apr 18 12:23:41 2024 -0600

    [#8557] updated _strip_tags_re with regexp since it was removed from 
markupsafe package
---
 Allura/allura/tasks/mail_tasks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Allura/allura/tasks/mail_tasks.py 
b/Allura/allura/tasks/mail_tasks.py
index dd16f7caa..75523b444 100644
--- a/Allura/allura/tasks/mail_tasks.py
+++ b/Allura/allura/tasks/mail_tasks.py
@@ -117,7 +117,7 @@ def create_multipart_msg(text, metalink=None):
     def replace_html(matchobj):
         text_within_div = matchobj.group(1)
         text_within_div = text_within_div.replace('</p>', '\n')
-        text_within_div = markupsafe._strip_tags_re.sub('', text_within_div)
+        text_within_div = re.compile(r"<.*?>", re.DOTALL).sub('', 
text_within_div)
         return text_within_div
 
     plain_text = text

Reply via email to