1. simplemediacode
  2. itempropwp

Commits

rolandinsh  committed 14b9d03

fix #3 strip tags for description with strip_tags()

  • Participants
  • Parent commits 3f4ce32
  • Branches master

Comments (0)

Files changed (2)

File itemprop_review.php

View file
  • Ignore whitespace
 							'ipwp_reviewpost_dsc',
 							$ipwrp_n->ipwp_excerpt_maxchr(
 								get_option('smcipwp_maxlenght'),
-								strip_shortcodes($reviewpost->post_content)
+								strip_tags( strip_shortcodes($reviewpost->post_content) )
 							)
 						); // Extending @since 3.3.1
 					}

File itempropwp.php

View file
  • Ignore whitespace
 	
 				if(!$ipwp_post_dsc){
 					$ipwp_n = new itempropwp;
-					$ipwp_post_dsc = apply_filters('ipwp_post_dsc', $ipwp_n->ipwp_excerpt_maxchr(get_option('smcipwp_maxlenght'), strip_shortcodes($thisipwp_post->post_content) )); // Extending @since 3.1
+					$ipwp_post_dsc = apply_filters(
+						'ipwp_post_dsc',
+						$ipwp_n->ipwp_excerpt_maxchr(get_option('smcipwp_maxlenght'),
+						strip_tags( strip_shortcodes( $thisipwp_post->post_content) ) )
+					); // Extending @since 3.1
 				}
 				
 				if(get_option('smcipwp_showcommcount')=='on'){