News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Alan Skorkin's Blog:
How To Fix The WP-Syntax Special Character Escaping Issue
March 11, 2010 @ 09:15:21

Alan Skorkin has a recent post to his blog about a trouble that many WordPress users have come across in working with their content and the WP-Syntax plugin (for displaying code) - a special character escaping bug that escapes characters that don't need it.

Suffice to say, [WP-Syntax] does the job fine except for one very annoying issue. Whenever you have any kind of special characters in your code (which you inevitably do e.g. <, >, & etc.), these always render as their escaped representations.

It only happens with the WYSIWYG editor for writing content (which the tool's FAQ recommends turning off) but there's a better solution that Alan found - change a line of code in the plugin to use the htmlspecialchars_decode function to rid your install of this pesky escaping bug.

0 comments voice your opinion now!
wpsyntax wordpress special character escape


blog comments powered by Disqus

Similar Posts

Ryan Malesevich's Blog: Separate Trackbacks from Comments Revisited

Ed Finkler's Blog: What Matt Mullenweg doesn't know about PHP5, and how it hurts him and his users

Job Posting: HUGE Seeks Freelance Zend/WordPress Developer (Brooklyn, NY)

Ryan Malesevich's Blog: WP Plugins: Adsense Beautifier

Template Monster Blog: It's coming! WordPress 3.0 - Pros and Cons


Community Events





Don't see your event here?
Let us know!


introduction bugfix laravel community release developer language opinion podcast list tips deployment library zendserver api symfony series framework threedevsandamaybe interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework