2015-09-14, 06:50 PM
Hi, I have a custom [spoiler] myCode. When I use the code, it shows fine in the post preview. However, when I submit the post. It does not show.
The code:
In the preview:
![[Image: rM2IwXM.png]](https://camo.mybb.com/be95d1881eaa4a8140785048fb4635258c031807/687474703a2f2f692e696d6775722e636f6d2f724d324977584d2e706e67)
In the post:
![[Image: iQVohfc.png]](https://camo.mybb.com/c7ed2642144177ff562cb9ec9ae899af51ded349/687474703a2f2f692e696d6775722e636f6d2f6951566f6866632e706e67)
Can someone help me figure to get this working? Thank you,
The code:
\[spoiler\](.*?)\[/spoiler\]
<div style="margin:20px; margin-top:5px"><div class="quotetitle"><input class="button2 btnlite" type="button" value="View Spoiler" style="text-align:center;width:115px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide Spoiler'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'View Spoiler'; }" /></div><div class="quotecontent"><div style="display: none;">$1</div></div></div>
In the preview:
In the post:
Can someone help me figure to get this working? Thank you,