wordpress & backslashes

One of my pet peeves about wordpress is that because it’s based on PHP and MySQL it doesn’t like backslash characters at all. It just eats them up and screws up your post. But I’ve found a simple answer. Use numeric entities instead. Just type in \ or \ to get a nice \backslash.

Comments 2

  1. Filippo Negroni wrote:

    That won’t work: the characters will be reconverted back to their representation the next time you edit your draft.
    Publishing perfectly acceptable HTML with WordPress is not possible due to their brain dead content processor.
    It is not a PHP and MySQL issue. It’s a developers issue. They must understand that they can store the content correctly and retrieve correctly, they just have to learn how to do it.
    Unacceptable in this day and age.

    Posted 23 Jul 2009 at 15:44
  2. dom wrote:

    @Filippo Negroni Well, I’ve had success using this technique. That said, it may be down to the fact I’m using the textile filter.

    But, it’s also been a long time since I did this. I haven’t tested any newer versions of wordpress…

    Posted 23 Jul 2009 at 15:47