11-23-2015, 10:50 AM
Actually, my patch to the software causes the censor to be applied after the bbcode markup is translated to html. It then skips anything that's inside angle brackets after the translation. That's how the board avoids breaking URLs that have censored words in them.
The markup you're using to defeat the censor doesn't disappear in the translation to html, so it still defeats the censor regexp. I suppose it would be possible to have code that recognizes and deletes empty html elements that will have no effect when rendered by the browser, prior to the censor. I think that would need an extra pass.
The markup you're using to defeat the censor doesn't disappear in the translation to html, so it still defeats the censor regexp. I suppose it would be possible to have code that recognizes and deletes empty html elements that will have no effect when rendered by the browser, prior to the censor. I think that would need an extra pass.

