Skip to content

Commit 5519e63

Browse files
fix: remove HTML tags after processing the item title (#1136)
1 parent c41e76b commit 5519e63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

includes/admin/feedzy-rss-feeds-import.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,10 @@ function ( $attr, $key ) {
18791879
$post_title = str_replace( '[#title_feedzy_rewrite]', $title_feedzy_rewrite, $post_title );
18801880
}
18811881

1882+
if ( is_string( $post_title ) ) {
1883+
$post_title = wp_strip_all_tags( $post_title );
1884+
}
1885+
18821886
$image_html = '';
18831887
if ( ! empty( $item['item_img_path'] ) ) {
18841888
$image_html = '<img src="' . $item['item_img_path'] . '" title="' . $item['item_title'] . '" />';

0 commit comments

Comments
 (0)