CODE tag erroneously strips backslash (*FIXED*)
Posted: Mon Nov 30, 2009 12:03 pm
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:
In my view this is a pretty serious bug!
Edit: The bug is fixed. Changed thread title to indicate this.
Here is a test post:
Code: Select all
'No escape'
\'One escape\'
\\'Two escapes\\'
\\\'Three escapes\\\'
\\\\'Four escapes\\\\' Edit: The bug is fixed. Changed thread title to indicate this.