mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
remove obsolete striphtmlalt
This commit is contained in:
parent
2dfdfad6f2
commit
4ffd239ea8
1 changed files with 0 additions and 5 deletions
|
@ -129,11 +129,6 @@ def stripHTML(s):
|
|||
s = entsToTxt(s)
|
||||
return s
|
||||
|
||||
def stripHTMLAlt(s):
|
||||
"Strip HTML, preserving img alt text."
|
||||
s = re.sub("<img [^>]*alt=[\"']?([^\"'>]+)[\"']?[^>]*>", "\\1", s)
|
||||
return stripHTML(s)
|
||||
|
||||
def stripHTMLMedia(s):
|
||||
"Strip HTML but keep media filenames"
|
||||
s = re.sub("<img src=[\"']?([^\"'>]+)[\"']? ?/?>", " \\1 ", s)
|
||||
|
|
Loading…
Reference in a new issue