{"id":12523,"date":"2011-03-16T14:57:21","date_gmt":"2011-03-16T14:57:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/cleancut\/"},"modified":"2011-03-16T15:28:38","modified_gmt":"2011-03-16T15:28:38","slug":"cleancut","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/cleancut\/","author":2355078,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.0","stable_tag":"1.2.0","tested":"3.1.4","requires":"2.0","requires_php":"","requires_plugins":"","header_name":"CleanCut","header_author":"Rodrigo Lanas van Lamoen","header_description":"","assets_banners_color":"","last_updated":"2011-03-16 15:28:38","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/p.contraculto.com\/","header_plugin_uri":"http:\/\/p.contraculto.com\/cleancut","header_author_uri":"http:\/\/contraculto.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1171,"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":["1.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1443685","resolution":"1","location":"plugin"}},"screenshots":{"1":"The functions."}},"plugin_section":[],"plugin_tags":[11329,4657,529,246,14000,17768,10873,4046],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-12523","plugin","type-plugin","status-closed","hentry","plugin_tags-characters","plugin_tags-clean","plugin_tags-content","plugin_tags-html","plugin_tags-length","plugin_tags-string","plugin_tags-trim","plugin_tags-words","plugin_committers-contraculto"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/cleancut.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/cleancut\/trunk\/screenshot-1.png?rev=1443685","caption":"The functions."}],"raw_content":"<!--section=description-->\n<p>A couple of simple php functions that, when passed a string of text and a length value, strips the text of html tags and markup, and cuts it to the specified length.<\/p>\n <p>clencut_w returns the given number of words or less, cleancut_c returns given number of characters or less. Only complete words are returned.<\/p>\n <p>They can be called as <code>cleancut_w($string,$length)<\/code> and <code>cleancut_c($string,$length=50)<\/code> from any template file.<\/p>\n <p>Example: <code>&lt;?php $text_clean = cleancut_w($sometext,50); echo $text_clean; ?&gt;<\/code>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Copy <code>cct_cleancut.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate it.<\/li>\n<li>Now you can use <code>cleancut_w($string,$length)<\/code> and <code>cleancut_c($string,$length=50)<\/code> in your templates.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>Nothing here.<\/p>\n\n<!--section=changelog-->\n<h4>1.2<\/h4>\n <ul>\n<li>Now returns clean string instead of echoing it.<\/li>\n<\/ul>","raw_excerpt":"Strip of HTML and cut a piece of text, either by character or word count.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/12523","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=12523"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/contraculto"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=12523"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=12523"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=12523"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=12523"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=12523"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=12523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}