fdsdfs
This commit is contained in:
parent
ddb2a2fc20
commit
96f98210de
2 changed files with 2 additions and 5 deletions
|
@ -161,10 +161,7 @@ def sanitize(sanitized, noimages=False):
|
||||||
|
|
||||||
sanitized = str(soup)
|
sanitized = str(soup)
|
||||||
|
|
||||||
start = '<s>'
|
sanitized = re.sub('\|\|(.*?)\|\|', r'<span class="spoiler">\1</span>', sanitized)
|
||||||
end = '</s>'
|
|
||||||
|
|
||||||
if start in sanitized and end in sanitized and start in sanitized.split(end)[0] and end in sanitized.split(start)[1]: sanitized = sanitized.replace(start, '<span class="spoiler">').replace(end, '</span>')
|
|
||||||
|
|
||||||
for i in re.finditer("[^a]>\s*(:[!#]{0,2}\w+:\s*)+<\/", sanitized):
|
for i in re.finditer("[^a]>\s*(:[!#]{0,2}\w+:\s*)+<\/", sanitized):
|
||||||
old = i.group(0)
|
old = i.group(0)
|
||||||
|
|
|
@ -133,7 +133,7 @@ You can use Markdown formatting:
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Spoilers</td>
|
<td>Spoilers</td>
|
||||||
<td><s> bussy > gussy </s></td>
|
<td>||bussy > gussy||</td>
|
||||||
<td><p class="spoiler">bussy > gussy</p></td>
|
<td><p class="spoiler">bussy > gussy</p></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue