@tarheelmm Can you share the affected feed URL?
News page
That is the URL
This is an example:
‘They’ve lost their way’: Pompeo rips ‘truly sick’ Washington Post for <b>softball</b> Baghdadi obit
-
This reply was modified 6 years, 7 months ago by
tarheelmm.
@tarheelmm It seems you may have missed pasting the URL correctly. Could you please share it again? Thanks.
In my first post I noted that I have already tried that and it is not working
@tarheelmm the snippet you pasted in the first message did not include the <b> tag that appears to be the problem for you in the other examples. It only includes <i>, <p>, and <span>. Had you added <b> in? If yes, can you please send us a screenshot of where you added the snippet?
This is my snippet code:
add_filter( ‘wprss_populate_post_data’, ‘my_strip_tags’, 1000, 2 );
function my_strip_tags( $args, $item ) {
$args[‘post_content’] = strip_tags( $args[‘post_content’], ‘<b>’ );
return $args;
}
@tarheelmm You didn’t specify, but I assume you wish to strip the tags from the title, correct? If so, you need to change “post_content” with “post_title” in the filter. Like so:
add_filter( 'wprss_populate_post_data', 'my_strip_tags', 1000, 2 );
function my_strip_tags( $args, $item ) {
$args['post_title'] = strip_tags( $args['post_title'], '<b>' );
return $args;
}
This doesn’t work with my feed. I try to strip all tags and I removed the ‘<b>’ part
Same here; code doesn’t work at all. Badly needed as this was easy with FeedWordPress.