Blogger » Wordpress Q
- Started
- Last post
- 6 Responses
- Centigrade
Anyone know of a good way to sanitize posts made on blogger. I'm moving a site over to wordpress for a client and all the existing posts have tons of residual formatting in them. I don't want to remove links etc... just all the inline styles and crap.
Help?
- prophetone0
simple text editor w/ search/replace then import?
- Centigrade0
Thanks. That's my plan B. There's tons of posts I have to clean and I'd rather not do it manually.
I was hoping there would be a plugin but I have managed to find one yet.
- prophetone0
if these are consistent elements, it should evaporate quickly by replacing things out, quicker than you may think.
- prophetone0
put on some headphones and he unkle essential mix to help out.
- prophetone0
obviously you've already tried this out?
http://wordpress.org/extend/plug…
- Centigrade0
Yep that plugin gets all the posts in etc... that's how I imported them, but it doesn't clean the content.
I just started getting somewhere with a little php:
<!--Post Content --><?php
$string1 = get_the_content();
$string = strip_tags($string1, '<p><a><img>');echo $string ;
?>