Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.8.0

Bug #9766 Wordpress error
Submitted: 2007-01-08 12:18 UTC
From: jan at ivtaco dot se Assigned:
Status: Bogus Package: Text_Highlighter (version 0.6.9)
PHP Version: Irrelevant OS: irreleveant
Roadmaps: (Not assigned)    
Subscription  


 [2007-01-08 12:18 UTC] jan at ivtaco dot se (Jan Bolmeson)
Description: ------------ Hi, My Highlighter seem to remove backslashes in code. E.g. in c++ or PHP code I frequently use \n for newlines. This is displayed as only n. If I view the source it shows: <span class="hl-special"></span><span class="hl-string">n</span> Instead of: <span class="hl-special">\</span><span class="hl-string">n</span>

Comments

 [2007-01-12 14:55 UTC] jan at ivtaco dot se
 [2007-01-15 21:31 UTC] stoyan at php dot net (Stoyan Stefanov)
Hi Jan, This seems to be a problem with WordPress and magic quotes maybe. I couldn't reproduce the issue using Text_Highlighter alone. You can do this test in your WP: <pre>\n</pre> The slash will be stripped from the source when you preview your post. Best regards, Stoyan
 [2007-01-15 23:28 UTC] jan at ivtaco dot se
Yes, indeed this was a Wordpress error. I am sorry for the false bug report... :( //jan