{"id":9003,"date":"2005-05-25T00:08:33","date_gmt":"2005-05-24T21:08:33","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/2005\/05\/25\/fixing-wordpress-escaping\/"},"modified":"2005-05-25T00:09:05","modified_gmt":"2005-05-24T21:09:05","slug":"fixing-wordpress-escaping","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2005\/05\/25\/fixing-wordpress-escaping\/","title":{"rendered":"Fixing WordPress escaping"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>Most of my posts about <a href=\"http:\/\/wordpress.org\">WordPress<\/a> were positive.  Today I&#8217;ll mention one of the annoying features it has by default and how to fix it.<\/p>\n<p>Escaping.  By default, all text in the &lt;pre&gt;&#8230;&lt;\/pre&gt; block is passed through escaping subroutine.  Most noticeble change happened to double quotes (&#8220;).  They were escaped with the backslash (\\).  Needless to say that rendered many code bits useless.<\/p>\n<p>The fix is very easy.  One just have to install <a href=\"http:\/\/dev.wp-plugins.org\/file\/code-markup\/trunk\/code-markup.php?rev=1770\">code-markup.php<\/a> plugin.  It has some additional functionality too, but for me all the value was in the unescaping routine.<\/p>\n<p>I&#8217;ve installed the plugin for this site and the problem is gone now.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>Most of my posts about WordPress were positive. Today I&#8217;ll mention one of the annoying features it has by default and how to fix it. Escaping. By default, all text in the &lt;pre&gt;&#8230;&lt;\/pre&gt; block is passed through escaping subroutine. Most noticeble change happened to double quotes (&#8220;). They were escaped with the backslash (\\). Needless &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2005\/05\/25\/fixing-wordpress-escaping\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Fixing WordPress escaping<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,1335,60],"tags":[],"keyring_services":[],"class_list":["post-9003","post","type-post","status-publish","format-standard","hentry","category-general","category-site-news","category-wordpress"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":18446,"url":"https:\/\/mamchenkov.net\/wordpress\/2013\/07\/03\/wordpress-plugin-auto-schedule-posts\/","url_meta":{"origin":9003,"position":0},"title":"WordPress plugin : Auto-Schedule Posts","author":"Leonid Mamchenkov","date":"July 3, 2013","format":false,"excerpt":"WordPress plugin : Auto-Schedule Posts You gotta love WordPress! \u00a0For anything that you can pretty much think of, there is a plugin already. \u00a0Just now I realized that I've been posting quite a few things at once, and that it would be way better to distribute such moments of \"creativity\"\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"Auto-Schedule Posts","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2013\/07\/Auto-Schedule-Posts-500x412.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":13293,"url":"https:\/\/mamchenkov.net\/wordpress\/2010\/08\/26\/installing-google-talk-plugin-for-voice-and-video-on-fedora-linux\/","url_meta":{"origin":9003,"position":1},"title":"Installing Google Talk plugin for voice and video on Fedora Linux","author":"Leonid Mamchenkov","date":"August 26, 2010","format":false,"excerpt":"With recent news of Google adding support for telephone calls from GTalk, I thought it was time to finally setup voice and video plugin on my system. \u00a0The good thing is that Google provides the Linux version of the browser plugin. \u00a0The bad news are that the plugin is only\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2010\/08\/gtalk_video_chat.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":26776,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/10\/23\/tagbar-phpctags-vim-plugin-for-php-developeres\/","url_meta":{"origin":9003,"position":2},"title":"tagbar-phpctags : Vim plugin for PHP developeres","author":"Leonid Mamchenkov","date":"October 23, 2016","format":false,"excerpt":"If you are using Vim editor to write PHP code, you probably already know about the excellent tagbar plugin, which lists methods, variables and the like in an optional window split. \u00a0Recently, I've learned of an awesome phpctags-tagbar plugin, which extends and improves this functionality via a phpctags tool, which\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"phpctags","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2016\/10\/phpctags-500x270.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":27280,"url":"https:\/\/mamchenkov.net\/wordpress\/2017\/01\/31\/composer-patches-simple-patches-plugin-for-composer\/","url_meta":{"origin":9003,"position":3},"title":"composer-patches &#8211; Simple patches plugin for Composer","author":"Leonid Mamchenkov","date":"January 31, 2017","format":false,"excerpt":"composer-patches is a plugin for Composer which helps with applying patches to the installed dependencies. \u00a0It supports patches from URLs, local files, and from other dependencies. I think this is absolutely brilliant! It's quite often that one finds bugs and issues in external dependencies. \u00a0Once the bug (or even the\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2017\/01\/commit-500x263.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":12308,"url":"https:\/\/mamchenkov.net\/wordpress\/2010\/03\/26\/finally-custom-post-types-in-wordpress-3-0\/","url_meta":{"origin":9003,"position":4},"title":"Finally, custom post types in WordPress 3.0 !","author":"Leonid Mamchenkov","date":"March 26, 2010","format":false,"excerpt":"The rumour has it that WordPress 3.0 will have custom post types built-in.\u00a0 These are excellent news!\u00a0 This means that 90% of all web development companies will be able to drop their own, complex and ugly in-house built systems and switch to WordPress development.\u00a0 And while WordPress code isn't the\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":28559,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/05\/08\/composer-plugin-qa-composer-plugin-for-php-quality-assurance-tools\/","url_meta":{"origin":9003,"position":5},"title":"composer-plugin-qa &#8211; Composer Plugin for PHP Quality Assurance Tools","author":"Leonid Mamchenkov","date":"May 8, 2018","format":false,"excerpt":"composer-plugin-qa is a Composer plugin which adds all the most popular PHP quality assurance tools as composer scripts, so that you don't have to install and set them up one by one.\u00a0 The list of tools includes the following: PHPUnit: Testing Framework PHPCOV: CLI frontend for the\u00a0PHP_CodeCoverage Paratest: Parallel testing\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/05\/composer-plugin-qa-500x296.jpeg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/9003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=9003"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/9003\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=9003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=9003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=9003"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=9003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}