Thread:CzechOut/@comment-1877307-20200520191418/@comment-1877307-20200520220006

I see. Part of the issue is that it's grabbing some tags and also some bold and italic tags, as well as some loose text content. The content needs to maintain those paragraph tags and the bold/italics. I'm not sure if there's a concern that someone cound inject a nasty script tag or something into the wikicode source and if that'd be parsed into something bad though. But the intended target of the script as it stands is a bunch of paragraph tags with a bit of loose text for the most part.

I actually initially tried to grab each child element, but because of the way wikitext gets parsed in some situations, it turned out to be impossible to move the content over in that way.

I looked up some external JS sanitization options which may be able to be used for some what-if cases, but I believe it would require importing a completely separate external script, and I don't know if that would be allowed, or even teccnically feasible given the current software this wiki is using. Hajike Tobiume (talk) 22:00, May 20, 2020 (UTC)