Blog: Don't show footnotes in post preview
This is the worst solution I possible could've done for this.
This commit is contained in:
parent
c9f100c6d8
commit
d0aee175ea
@ -6,7 +6,9 @@ from datetime import datetime
|
|||||||
from email import utils
|
from email import utils
|
||||||
|
|
||||||
def remove_tags(text):
|
def remove_tags(text):
|
||||||
return re.sub(re.compile('<.*?>'), "", text)
|
text = re.sub(re.compile('>[0-9]<'), "", text)
|
||||||
|
text = re.sub(re.compile('<.*?>'), "", text)
|
||||||
|
return text
|
||||||
|
|
||||||
def get_path(path, ext_in, ext_out):
|
def get_path(path, ext_in, ext_out):
|
||||||
path = path[len("pages"):]
|
path = path[len("pages"):]
|
||||||
|
Loading…
Reference in New Issue
Block a user