{"id":12151,"date":"2011-02-14T10:32:12","date_gmt":"2011-02-14T10:32:12","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/allow-javascript-in-posts-and-pages\/"},"modified":"2011-02-14T11:50:25","modified_gmt":"2011-02-14T11:50:25","slug":"allow-javascript-in-posts-and-pages","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/allow-javascript-in-posts-and-pages\/","author":7287108,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.0.1","stable_tag":"0.0.1","tested":"3.0.5","requires":"2.0","requires_php":"","requires_plugins":"","header_name":"Allow Javascript in posts and pages","header_author":"Hit Reach","header_description":"","assets_banners_color":"","last_updated":"2011-02-14 11:50:25","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.hitreach.co.uk\/wordpress-plugins\/allow-javascript-in-posts-and-pages\/","header_author_uri":"http:\/\/www.hitreach.co.uk\/","rating":0,"author_block_rating":0,"active_installs":200,"downloads":22170,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[5511,229,243,86,749],"plugin_category":[59],"plugin_contributors":[78569],"plugin_business_model":[],"class_list":["post-12151","plugin","type-plugin","status-closed","hentry","plugin_tags-filtering","plugin_tags-javascript","plugin_tags-pages","plugin_tags-post","plugin_tags-text","plugin_category-utilities-and-tools","plugin_contributors-hit-reach","plugin_committers-hit-reach"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/allow-javascript-in-posts-and-pages.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Allow Javascript in posts and pages adds the functionality to include Javascript in wordpress posts and pages by adding a simple shortcode [js].code.[\/js]<\/p>\n\n<p>This plugin strips away the automatically generated wordpress &lt;p&gt; and &lt;br\/&gt; tags but still allows the addition of your own &lt;p&gt; and &lt;br\/&gt; tags by using [p] and [\/p] or [br\/] or [a href='void(0)']link[\/a]<\/p>\n\n<p>Please submit bugs<\/p>\n\n<h3>Usage<\/h3>\n\n<p>To add the Javascript code to your post or page simply place any Javascript code inside the shortcode tags.<\/p>\n\n<p>For example: If you wanted to add content that is visible to a particular user id:<\/p>\n\n<p>For example: a simple alert<\/p>\n\n<pre><code>[js]\n alert('helloWorld');\n[\/js]\n<\/code><\/pre>\n\n<p>This code will cause a popup when the page is loaded.  in addition, should this code not be working (for example a missing \";\") simply just change the [js] to be [js debug=1]<\/p>\n\n<pre><code> [js debug=1]\n  alert('helloWorld');\n  [\/js]\n<\/code><\/pre>\n\n<h4>Some Important Notes<\/h4>\n\n<p>This plugin strips away all instances of &lt;p&gt; and &lt;br \/&gt; therefore code has been added so that if you wish to use tags in your output (e.g.): \n     [js]\n      alert(\"hello &lt;br \/&gt; world\");\n     [\/js]<\/p>\n\n<p>the &lt; and &gt; tags will need to be swapped for [ and ] respectively so &lt;p&gt; becomes [p] and &lt;\/p&gt; becomes [\/p] which is converted back to &lt;\/p&gt; at runtime. these [ ] work for all tags (p, strong, em etc.). \n     [js]\n      alert(\"hello [br \/] world\");\n     [\/js]<\/p>\n\n<h3>Misc<\/h3>\n\n<p>Developed by <a href='http:\/\/www.hitreach.co.uk'>Hit Reach<\/a><\/p>\n\n<p>Check out our other <a href='http:\/\/www.hitreach.co.uk\/services\/wordpress-plugins\/'>Wordpress Plugins<\/a><\/p>\n\n<p>Version: 1.0 <a href='http:\/\/www.hitreach.co.uk\/wordpress-plugins\/allow-javascript-in-posts-and-pages\/'>Support &amp; Comments<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Extract the zip file and drop the contents in the wp-content\/plugins\/ directory of your WordPress installation<\/li>\n<li>Activate the Plugin from Plugins page<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>What Tags Are Automatically Removed?<\/dt>\n<dd><p>Currently all &lt;br \/&gt; and &lt;p&gt; (and its closing counterpart) tags are removed from the input code because these are the tags that Wordpress automatically add.<\/p><\/dd>\n<dt>How Do I Add Tags Without Them Being Stripped?<\/dt>\n<dd><p>If you want to echo a paragraph tag or a line break, or any other tag (strong, em etc) instead of enclosing them in &lt; and &gt; tags, enclose them in [ ] brackets for example [p] instead of &lt;p&gt; The square brackets are converted after the inital tags are stripped and function as normal tags.<\/p><\/dd>\n<dt>Thats All Good But I want To Include A [ and ] In My Output!<\/dt>\n<dd><p>To include square brackets in your output simply add a \\ before it so [ becomes &#091; and ] becomes &#093;, again these are converted and will display as [ and ]<\/p><\/dd>\n<dt>My Question Is Not Answered Here!<\/dt>\n<dd><p>If your question is not listed here please look on: <a href='http:\/\/www.hitreach.co.uk\/wordpress-plugins\/allow-javascript-in-posts-and-pages\/'>http:\/\/www.hitreach.co.uk\/wordpress-plugins\/allow-javascript-in-posts-and-pages\/<\/a> and if the answer is not listed there, just leave a comment<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.0.1<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"Allow Javascript in posts and pages allows the include of Javascript inside posts and pages, whilst retaining HTML tags and functional script","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/12151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=12151"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hit-reach"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=12151"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=12151"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=12151"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=12151"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=12151"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=12151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}