More tag (among others) stripped
-
I am currently importing my blog to WordPress using this plugin. Most of the 44,000 posts are properly imported with one issue. Any
<!--more-->
tags in the post content (which is used by Blogger and WordPress to denote the “Read more” cutoff. See: https://en.support.wordpress.com/more-tag/ ) is stripped from every imported post.Since 38,098 out of my 44,598 blogger posts use this tag, I don’t want to re-add these manually.
This issue is seemingly caused by the following line in
importer.php
:178:
'post_content' => strip_tags($post->content, '<' . implode('><', $good_tags) . '>'),
The strip_tags method also strips html comment tags such as the more tag. This is hardcoded and can’t be adjusted by providing it in the $good_tags array.
As a temporary workaround I’ve removed the strip_tags from the plugin in my WordPress environment for now, inserting the Blogger content as-is.
- The topic ‘More tag (among others) stripped’ is closed to new replies.