{"id":31223,"date":"2014-08-19T05:33:15","date_gmt":"2014-08-19T05:33:15","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/quick-wp-htmlentities\/"},"modified":"2018-06-15T08:57:20","modified_gmt":"2018-06-15T08:57:20","slug":"quick-wp-htmlentities","status":"closed","type":"plugin","link":"https:\/\/mya.wordpress.org\/plugins\/quick-wp-htmlentities\/","author":11811830,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2","stable_tag":"trunk","tested":"4.9.29","requires":"3.9.1","requires_php":"","requires_plugins":"","header_name":"Quick WP htmlentities","header_author":"Willy Richardson","header_description":"","assets_banners_color":"","last_updated":"2018-06-15 08:57:20","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.brimbox.com\/services\/#tag","header_plugin_uri":"","header_author_uri":"http:\/\/www.brimbox.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":849,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description"],"tags":[],"upgrade_notice":{"1.2":"<ul>\n<li>Revisited the plugin after some time to try make it work sensibly.<\/li>\n<li>DO NOT upgrade without thought if you are using version 1.1. Some functionality was removed.<\/li>\n<\/ul>","1.1":"<ul>\n<li>Fixed problem with ampersands (&amp;) which caused plugin to fail (wpautop already substitutes htmlentitities for ampersands).<\/li>\n<li>Now purges line breaks, tabs and carriage returns from output so pre tags and related styles work.<\/li>\n<\/ul>","1.0":"<ul>\n<li>This is the initial beta release on 7\/1\/2014<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[52091,1975,52092],"plugin_category":[46],"plugin_contributors":[158044],"plugin_business_model":[],"class_list":["post-31223","plugin","type-plugin","status-closed","hentry","plugin_tags-codeblocks","plugin_tags-formatting","plugin_tags-htmlentities","plugin_category-editor-and-writing","plugin_contributors-willrich33","plugin_committers-willrich33"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/quick-wp-htmlentities.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<h4>Overview<\/h4>\n\n<p>This is a plugin that emulates the PHP htmlentities function so that HTML and other code can automatically be formatted into HTML entities using a shortcode in paragraphs and inline within posts. When using this plugin, you must set a checkbox meta value to enable it in each post.<\/p>\n\n<h4>Important<\/h4>\n\n<p>This plugin addresses a tricky problem, Wordpress formats and adds paragraph tags before executing shortcodes. So the following code does not work by default because it also formats the paragarphs and breaks Wordpress adds.<\/p>\n\n<pre><code>add_shortcode('htmlentities', 'htmlentities_func');\nfunction htmlentities_func($atts, $content = null) {     \n     return htmlentities($content);     \n}\n<\/code><\/pre>\n\n<p>To make this shortcode work this plugin rearranges the execution order of the \"the_content\" filter executing shortcodes before formatting. Uncheck the meta value box in the backend if this causes issues.<\/p>\n\n<h4>Standard Block Usage<\/h4>\n\n<pre><code>Lorem ipsum dolor sit amet, consectetur adipiscing elit. \n\n[quick-wp-htmlentities]\n\n&lt;span style=\"color:blue\"&gt;Using a style.&lt;\/span&gt;\n\n[\/quick-wp-htmlentities]\n\nDonec mauris metus, scelerisque id fermentum id, ornare at metus.\n<\/code><\/pre>\n\n<h4>Standard Inline Usage<\/h4>\n\n<pre><code>[quick-wp-htmlentities]&lt;span style=\"color:blue\"&gt;Using a style.&lt;\/span&gt;[\/quick-wp-htmlentities]\n<\/code><\/pre>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Revisited the plugin after some time to try make it work sensibly.<\/li>\n<li>DO NOT upgrade without thought if you are using version 1.1. Some functionality was removed.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Fixed problem with ampersands (&amp;) which caused plugin to fail (wpautop already substitutes htmlentitities for ampersands).<\/li>\n<li>Now purges line breaks, tabs and carriage returns from output so pre tags and related styles work.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Plugin created.<\/li>\n<\/ul>","raw_excerpt":"This is a shortcode plugin that applies the PHP htmlentities function to text in a post.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/31223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=31223"}],"author":[{"embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/willrich33"}],"wp:attachment":[{"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=31223"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=31223"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=31223"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=31223"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=31223"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mya.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=31223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}