I am active in the regex forum and frequently use the BBCode CODE=TEXT tag to post regex solutions. I recently discovered that for a CODE tag, the BBCode parser erroneously strips any backslash preceding a single quote. It is my understanding that anything placed inside a CODE tag should not be processed (i.e. changed) in any way. This
"un-escaping escaped single quotes" behaviour makes it impossible to reliably post accurate PHP code.
Here is a test post:
Code: Select all
'No escape'
\'One escape\'
\\'Two escapes\\'
\\\'Three escapes\\\'
\\\\'Four escapes\\\\'
In my view this is a pretty serious bug!
Edit: The bug is fixed. Changed thread title to indicate this.