forked from MarseyWorld/MarseyWorld
fdsdfs
parent
2b3cd29a64
commit
679c99e681
|
@ -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…
Reference in New Issue