Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
Search <a*1>*2</a> and replace to *2 in QTextEdit
-
Remove link element, leave link.innerHTML.
For example:<a href="http://image109.360doc.com/DownloadImg/2018/01/2720/123210122_5_20180127084053409.jpg" target="_blank" data-lightbox-group="group1517056981927"><img src="http://image109.360doc.com/DownloadImg/2018/01/2720/123210122_5_20180127084053409.jpg"></a>
Chance to:
<img src="http://image109.360doc.com/DownloadImg/2018/01/2720/123210122_5_20180127084053409.jpg">
-
-
@LeLev
Assuming that works, good one, better you than me! These reg exs are getting ridiculously complex these days....
-
s.replace(QRegularExpression("<a(.*?)>(.*)</a>"), "\\2");